PageSourceSearch

https://www.hbmagpies.co.nz/Content/ckeditor/photoslideshow_config.js?cb=

js hbmagpies.co.nz collected 2026-09-25 10:41:42 UTC 5,403 bytes, 124 lines download raw bytes

1/**
2 * @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
3 * For licensing, see LICENSE.html or http://ckeditor.com/license
4 */
5
6CKEDITOR.editorConfig = function (config) {
7    config.versionCheck = false;
8// Define changes to default configuration here.
9    // For the complete reference:
10    // http://docs.ckeditor.com/#!/api/CKEDITOR.config
11
12    // Referencing the new plugin
13    config.extraPlugins = 'addImage,autogrow,dialog,table,tabletools,panel,floatpanel,panelbutton,colorbutton,font,widget,widgetselection,lineutils,html5audio,notification,notificationaggregator,embedbase,embed,undo,clipboard,autolink,autoembed,sourcedialog';
14
15
16    myFonts = ['Amatic SC', 'Montserrat', 'Raleway', 'Playfair Display', 'Nunito', 'Nunito Sans', 'Arvo', 'Open Sans', 'Roboto Slab', 'Quicksand', 'Lato', 'Oswald', 'Exo2'];
17
18    for (var i = 0; i < myFonts.length; i++) {
19
20        var fontName = myFonts[i].replace(' ', '+');
21
22        myFonts[i] = '//fonts.googleapis.com/css?family=' + fontName + ":400,400i,700,700i&display=swap";
23        $("head").append("<link href='" + myFonts[i] + "' rel='stylesheet' type='text/css'>");
24    }
25
26    config.contentsCss = ['/content/noncmsCkEditor.css?v=1.0'].concat(myFonts);
27
28    //add custom non google fonts
29    var orgId = $('#OrganisationId').val();
30    if (orgId == 15776 || orgId == 16000 || orgId == 13957) {
31        config.contentsCss = ['/content/noncmsCkEditor.css?v=1.0'].concat(['/content/fonts/hurmefont.css']);
32    }
33
34    if (orgId == 10249) {
35        config.contentsCss = ['/content/noncmsCkEditor.css?v=1.0'].concat(['/content/fonts/foundersgrotesk.css']);
36    }
37
38    if (orgId == 23003) {
39        config.contentsCss = ['/content/noncmsCkEditor.css?v=1.0'].concat(['/content/fonts/campton.css']);
40    }
41
42    config.contentsCss = config.contentsCss.concat(['/content/fonts/spectral.css']);
43
44    // Toolbar configuration generated automatically by the editor based on config.toolbarGroups.
45    config.toolbar = [
46
47        { name: 'basicstyles', groups: ['basicstyles'], items: ['Font', 'FontSize', 'Bold', 'Italic', 'TextColor'] },
48		{ name: 'clipboard', groups: ['undo'], items: ['Undo', 'Redo'] },
49		{ name: 'links', items: ['Link', 'Unlink'] },
50		//'/',
51		{ name: 'paragraph', items: ['NumberedList', 'BulletedList'] },
52		{ name: 'paragraphTwo', items: ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'] },
53
54        { name: 'insert', items: ['Table', 'HorizontalRule'] },
55
56        { name: 'source', items: ['Sourcedialog'] }
57
58    ];
59
60    config.colorButton_colors = '000000,434343,666666,999999,b7b7b7,cccccc,d9d9d9,efefef,f3f3f3,ffffff,' +
61														'9a0000,ff0000,ff9900,ffff00,00ff00,00ffff,4683eb,0000ff,9a00ff,ff00ff,' +
62														'e7b8ae,f5cccb,fde5cc,fff3ca,d9ead2,d0e0e4,c9d9f9,cee2f4,d9d1e9,ead1dc,' +
63														'df7e68,ec9998,fde5cc,ffe694,b5d8a6,a1c4ca,a3c1f6,9ec5ea,b4a6d8,d6a5bd,' +
64														'ce401a,e26564,f8b365,ffda5c,91c57a,74a5b0,6a9ced,6da7de,8e7ac5,c379a0,' +
65														'a81a00,cf0000,e8912a,f2c314,68a94a,42818f,3875db,3983c9,674ba9,a84b79,' +
66														'871f02,9b0000,9b0000,c19100,357714,0e4f5c,0651cf,025196,315777,751847,' +
67														'5c0e00,670000,793f00,806100,264f0e,09343d,194389,033664,200f4e,4d1030';
68
69    CKEDITOR.updateColorPalette(config);
70    config.colorButton_enableMore = false;
71
72    config.fontSize_defaultLabel = '16px';
73    config.font_defaultLabel = 'Times New Roman';
74    if ($('#hdnFontFamily').length > 0) {
75        config.font_defaultLabel = $('#hdnFontFamily').val().split(',')[0];
76        CKEDITOR.addCss('body { font-family: ' + $('#hdnFontFamily').val().split(',')[0] + ' !important; } '
77            + 'body div { font-family: ' + $('#hdnFontFamily').val().split(',')[0] + ' !important; } ' + '');
78    }
79
80    if (CKEDITOR.sportyFontConfig) {
81        CKEDITOR.sportyFontConfig.apply(config);
82    }
83
84    if (CKEDITOR.sportyImageUpload) {
85        CKEDITOR.sportyImageUpload.apply(config);
86    }
87
88    var allowed = 'h1 h2 h3 h4 h5 h6 p ul ol li table hr blockquote strong em; a[!href]';
89    config.pasteFilter = allowed;
90    config.allowedContent = true; // disable ACF (keep pasteFilter for paste sanitisation)
91    // The default plugins included in the basic setup define some buttons that
92    // we don't want too have in a basic editor. We remove them here.
93    //config.removeButtons = 'Anchor,Strike,Subscript,Superscript';
94
95    // Let's have it basic on dialogs as well.
96    config.removeDialogTabs = 'link:advanced';
97    config.forcePasteAsPlainText = false;
98
99    config.pasteFromWordRemoveStyles = false;
100
101    // Don't show annoying Aria-Label title on hover
102    CKEDITOR.config.title = false;
103
104    CKEDITOR.on('instanceReady', function () {
105        $("iframe.cke_wysiwyg_frame").css("background-color", $("#uxBackgroundColor").val());
106    });
107
108
109    CKEDITOR.config.embed_provider = 'https://iframe.ly/api/oembed?url={url}&callback={callback}&api_key=2c4d88a7321c58309fbde9&iframe=1&omit_script=1&omit_css=1';
110};
111
112CKEDITOR.updateColorPalette = function (config) {
113    if ($("#SiteId").val() == null)
114        return false;
115
116    var data = JSON.parse($('#CustomColorsJson').val()) || [];
117
118    $(data).each(function () {
119        var hexValue = $(this)[0].HexValue;
120        hexValue = hexValue.substr(1, hexValue.length);
121        // Add custom color to pallette
122        config.colorButton_colors += ',' + hexValue;
123    });
124}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.