1/** 2 * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. 3 * For licensing, see LICENSE.md or http://ckeditor.com/license 4 */ 5 6CKEDITOR.editorConfig = function( config ) { 7 8config.keystrokes = [ 9 10 // [ CKEDITOR.CTRL + 76, null ], // CTRL + L 11 [ CKEDITOR.ALT + CKEDITOR.SHIFT + 56, 'bulletedlist' ], // ALT + * 12 [ CKEDITOR.ALT + 56, 'bulletedlist' ], // ALT + 8 13 [ CKEDITOR.ALT + 173, 'numberedlist' ], // ALT + - 14 [ CKEDITOR.CTRL + 48, 'ckgundoheader' ], // ALT + 0 15 [ CKEDITOR.CTRL + 49, 'ckginsheaderone' ], // ALT + 1 16 [ CKEDITOR.CTRL + 50, 'ckginsheadertwo' ], // ALT + 2 17 [ CKEDITOR.CTRL + 51, 'ckginsheaderthree' ], // ALT + 4 18 [ CKEDITOR.CTRL + 52, 'ckginsheaderfour' ], // ALT +4 19 [ CKEDITOR.CTRL + 53, 'ckginsheaderfive' ], // ALT + 5 20 [ CKEDITOR.ALT + 77, 'ckginscode' ], //ALT +m 21 /* turn off ALT to avoid conflict with AltGr */ 22 [ CKEDITOR.ALT + 48, null ], 23 [ CKEDITOR.ALT + 49, null ], 24 [ CKEDITOR.ALT + 50, null ], 25 [ CKEDITOR.ALT + 51, null ], 26 [ CKEDITOR.ALT + 52, null ], 27 [ CKEDITOR.ALT + 53, null ], 28 29 30]; 31 32config.colors = new Array( 33'000000','000033','000066','000099','0000CC','0000CE','0000FF','003300','003333','003366','003399','0033CC','0033FF','006600','006633', 34'006666','006699','0066CC','0066FF','009900','009933','009966','009999','0099CC','0099FF','00CC00','00CC33','00CC66','00CC99','00CCCC','00CCFF', 35'00FF00','00FF33','00FF66','00FF99','00FFCC','00FFFF','01F33E','01FCEF','03EBA6','03F3AB','06DCFB','0AFE47','111111','1F88A7','1FCB4A','1FFEF3', 36'222222','23819C','24E0FB','25A0C5','27DE55','2897B7','2966B8','29AFD6','2DC800','2F74D0','2FAACE','32DF00','330000','330033','330066','330099', 37'3300CC','3300FF','333300','333333','333333','333366','333399','3333CC','3333FF','336600','336633','336666','336699','3366CC','3366FF','339900', 38'339933','339966','339999','3399CC','3399FF','33CC00','33CC33','33CC66','33CC99','33CCCC','33CCFF','33FDC0','33FF00','33FF33','33FF66','33FF99', 39'33FFCC','33FFFF','36F200','3923D6','3DE4FC','444444','44B4D5','48FB0D','4985D6','4A9586','4AE371','4BFE78','4FBDDD','52FF20','555555','5757FF', 40'57BCD9','59955C','59DF00','5B5BFF','5EAE9E','5FFEF7','6094DB','61F200','62A9FF','62D0FF','62FDCE','63E9FC','660000','660033','660066','660099', 41'6600CC','6600FF','663300','663333','663366','663399','6633CC','6633FF','666600','666633','666666','666666','666699','6666CC','6666FF','669900', 42'669933','669966','669999','6699CC','6699FF','66CC00','66CC33','66CC66','66CC99','66CCCC','66CCFF','66FF00','66FF00','66FF33','66FF66','66FF99', 43'66FFCC','66FFFF','6755E3','67C7E2','6A6AFF','6CA870','6FFF44','72FE95','7373FF','74138C','74BAAC','74FEF8','75B4FF','75D6FF','75ECFD','777777', 44'7979FF','79FC4E','7BA7E1','7BCAE1','7CEB98','7DFDD7','800080','80B584','8282FF','8678E9','86BCFF','872187','888888','892EE4','89FC63','8ADCFF', 45'8BFEA8','8C8CFF','8CD1E6','8CEFFD','8D18AB','8DC7BB','8EB4E6','8ED6EA','8FFEDD','8FFF6F','9191FF','92FEF9','93BF96','93EEAA','9588EC','95FF4F', 46'9669FE','990000','990033','990066','990099','990099','9900CC','9900FF','993300','993333','993366','993399','9933CC','9933FF','996600','996633', 47'996666','996699','9966CC','9966FF','999900','999933','999966','999999','999999','9999CC','9999FF','9999FF','99C7FF','99C7FF','99CC00','99CC33', 48'99CC66','99CC99','99CCCC','99CCFF','99E0FF','99FD77','99FF00','99FF33','99FF66','99FF99','99FFCC','99FFFF','9A03FE','9B4EE9','9D9D00','A095EE', 49'A27AFE','A3FEBA','A41CC6','A4F0B7','A55FEB','A5D3CA','A5DBEB','A5FEE3','A5FEFA','A5FF8A','A6CAA9','A6DEEE','A827FE','A8A8FF','A8CFFF','A8E4FF', 50'A9C5EB','AAAAAA','AAAAFF','AAFD8E','ABFF73','ACF3FD','AD8BFE','AE70ED','AE70ED','B05F3C','B0A7F1','B300B3','B3FF99','B445FE','B4D1B6','B5FFC8', 51'B5FFFC','B6BA18','B7B7FF','B89AFE','B8E2EF','B9264F','B96F6F','BA21E0','BABA21','BAD0EF','BAFEA3','BBBBBB','BBBBFF','BBDAFF','BBEBFF','BC2EBC', 52'BCB4F3','BD5CFE','BDF4CB','BDFFEA','BEFEEB','BF00BF','C06A45','C0A545','C0E0DA','C0E7F3','C0F7FE','C0F7FE','C0FF97','C17753','C269FE','C27E3A', 53'C47557','C48484','C4ABFE','C6C6FF','C79BF2','C87C5B','C88E8E','C8B400','C8C800','C98767','C98A4B','C9DECB','C9EAF3','CA00CA','CACAFF','CAFEB8', 54'CAFFD8','CB59E8','CB59E8','CB876D','CBC5F5','CC0000','CC0033','CC0066','CC0099','CC00CC','CC00FF','CC3300','CC3333','CC3366','CC3399','CC33CC', 55'CC33FF','CC6600','CC6633','CC6666','CC6699','CC66CC','CC66FF','CC9900','CC9933','CC9966','CC9999','CC99CC','CC99FF','CCCC00','CCCC33','CCCC66', 56'CCCC99','CCCCCC','CCCCCC','CCCCFF','CCFF00','CCFF33','CCFF66','CCFF99','CCFFCC','CCFFFF','CD85FE','CDD11B','CEA8F4','CEB86C','CEDEF4','CEF0FF', 57'CEFFFD','CF8D72','CFE7E2','CFFEF0','D0977B','D0BCFE','D0E6FF','D19C67','D1A0A0','D1D17A','D1FFB3','D29680','D2FFC4','D54FD5','D568FD','D698FE', 58'D69E87','D6C485','D6F8DE','D73E68','D7ACAC','D7D1F8','D7D78A','D881ED','D8F0F8','D900D9','D97BFD','D9C400','D9F3FF','DAA794','DAAC96','DAAF85', 59'DB00DB','DB9900','DBBFF7','DBDB97','DBDBFF','DBEADC','DBEBFF','DBF0F7','DCEDEA','DD597D','DD75DD','DD75DD','DD88FD','DDB791','DDB9B9','DDCEFF', 60'DDDDDD','DDFED1','DEB19E','DECF9C','DFA800','DFB0FF','DFB4A4','DFDF00','DFE32D','DFFFCA','E0BBA9','E0E04E','E0EAF8','E1CAF9','E1E1A8','E1E1FF', 61'E1FFFE','E29BFD','E37795','E3D6AA','E3E0FA','E3FBE9','E3FBE9','E469FE','E4C0B1','E4C6A7','E697E6','E6C5B9','E6CCCC','E6CE00','E6DBFF','E6E671', 62'E6FCFF','E77AFE','E7A9FE','E7F3F1','E7FFDF','E8C6FF','E8CCBF','E8FFD9','E994AB','E9D0B6','E9E9BE','E9E9C0','E9F1EA','EA8DFE','EAA400','EAA6EA', 63'EACDC1','EADFBF','EAEA8A','EAF1FB','EAF7FB','EAFEE2','EAFFEF','EAFFEF','EBD0C7','ECD5CA','ECD9D9','ECF4FF','ECFAFF','ED9EFE','EDA9BC','EDBEFE', 64'EDDFFB','EDE4C9','EDEF85','EEBBEE','EEDCC8','EEEEA2','EEEECE','EEEECE','EEEEEE','EEEEFF','EEEEFF','EEF093','EFA9FE','EFCDF8','EFCDF8','EFD7FF', 65'EFE7CF','EFEDFC','EFF9FC','F0B9C8','F0C4F0','F0CBFE','F0DCD5','F0DDD5','F0DDD5','F1ECFF','F1F1B1','F1F1D6','F1FEED','F206FF','F2BCFE','F2E4D5', 66'F2F4B3','F2F9F8','F2FFEA','F2FFFE','F3E7E7','F3F8F4','F4CAD6','F4D2F4','F4D2F4','F4DCFE','F4F4BF','F5CAFF','F5E7E2','F5E8E2','F5E8E2','F5EEFD', 67'F5EFE0','F5F5E2','F5F7C4','F5FFF2','F70000','F7DE00','F7F5FE','F7F7CE','F7F9D0','F7FBFA','F7FFFD','F8DAE2','F8E9FC','F8F1F1','F8FBFE','F900F9', 68'F9BB00','F9D9FF','F9EEFF','F9EFEC','F9F3EC','F9F5EC','F9F9DD','F9F9FF','F9FCFF','F9FDFF','F9FEFF','F9FFFB','FAE7EC','FAECFF','FAF2EF','FAFBDF', 69'FAFDFE','FAFEFB','FAFFF7','FBF9FF','FBFBE8','FBFDFB','FCF7F5','FCF9F5','FCFCE9','FDF2FF','FDF9FD','FDF9FF','FDFAF9','FDFAF9','FDFBFB','FDFCF9', 70'FDFDF0','FDFDF9','FDFDFF','FDFEFF','FDFFFD','FDFFFF','FE67EB','FE67EB','FE8BF0','FE98F1','FEA9F3','FEFAFB','FEFDFF','FEFDFF','FEFEFA','FF0000', 71'FF0033','FF0066','FF0099','FF00CC','FF00FF','FF2626','FF2DFF','FF3300','FF3333','FF3366','FF3399','FF33CC','FF33FF','FF4848','FF4AFF','FF5353', 72'FF62B0','FF6600','FF6633','FF6666','FF6699','FF66CC','FF66FF','FF68DD','FF7373','FF73B9','FF7575','FF79E1','FF7DFF','FF800D','FF86C2','FF86E3', 73'FF86FF','FF8A8A','FF8E8E','FF9331','FF9797','FF97CB','FF97E8','FF9900','FF9933','FF9966','FF9999','FF99CC','FF99FF','FF9C42','FFA04A','FFA4A4', 74'FFA4FF','FFA8A8','FFA8D3','FFA8FF','FFAB60','FFAC62','FFACEC','FFACEC','FFB428','FFB5B5','FFB60B','FFBB7D','FFBBBB','FFBBDD','FFBBF7','FFBBFF', 75'FFBD82','FFBE28','FFBF48','FFC48E','FFC4FF','FFC65B','FFC848','FFC895','FFC8C8','FFC8E3','FFC8F2','FFCAF9','FFCB2F','FFCC00','FFCC33','FFCC66', 76'FFCC99','FFCCCC','FFCCFF','FFCE73','FFCEA2','FFCECE','FFCEFF','FFCFA4','FFD062','FFD34F','FFD586','FFD7B3','FFD9B7','FFDBFB','FFDD75','FFDEA2', 77'FFDFDF','FFDFEF','FFDFF8','FFDFFF','FFE099','FFE1C6','FFE2C8','FFE3FF','FFE699','FFE6B5','FFE6D0','FFE920','FFEAB7','FFEAC4','FFEAEA','FFEAEA', 78'FFEBD9','FFECB0','FFECEC','FFECF5','FFECFF','FFEEFB','FFEEFD','FFF06A','FFF1C6','FFF1E6','FFF284','FFF2D2','FFF2D9','FFF2F2','FFF4EA','FFF5D7', 79'FFF7B7','FFF7E6','FFF9CE','FFF9EA','FFF9F4','FFF9FC','FFF9FE','FFF9FF','FFFAEA','FFFBDF','FFFDF7','FFFDF9','FFFDF9','FFFDFD','FFFDFF','FFFDFF', 80'FFFEF7','FFFEFB','FFFEFD','FFFF00','FFFF33','FFFF66','FFFF84','FFFF99','FFFF99','FFFFAA','FFFFB5','FFFFC8','FFFFCC','FFFFD7','FFFFE3','FFFFFD', 81'FFFFFF','FFFFFF','FFFFFF' 82); 83 84 var browser_level; 85 if (window.top != window.self) { 86 browser_level = window.self; 87 } 88 else browser_level = window.top; 89 //alert(window.self == browser_level); 90 var ckedit_path; 91 if(browser_level.JSINFO['ckg_canonical']) { 92 ckedit_path = browser_level.DOKU_BASE + 'lib/plugins/ckgedit/ckeditor/'; 93 config.doku_url = browser_level.DOKU_BASE; 94 config.ckedit_path = browser_level.DOKU_BASE + 'lib/plugins/ckgedit/ckeditor/'; 95 } 96 else { 97 ckedit_path = window.location.protocol +'//' + browser_level.dokuBase + 'lib/plugins/ckgedit/ckeditor/'; 98 config.doku_url = window.location.protocol+ '//' + browser_level.dokuBase; 99 config.ckedit_path = window.location.protocol +'//' + browser_level.dokuBase + 'lib/plugins/ckgedit/ckeditor/'; 100 } 101 config.jquery = browser_level.jQuery; 102 // config.format_code = { element : 'code', attributes : { 'class' : 'dwcode' } }; 103 // Define changes to default configuration here. 104 // For the complete reference: 105 // http://docs.ckeditor.com/#!/api/CKEDITOR.config 106 config.scayt__disable = false; 107 browser_level.ckgedit_language_chk(config); //resets language if $conf['other_lang'] != 'default' and resets auto scayt to true of false 108 // config.scayt_autoStartup = true; 109 config.format_tags = 'p;h1;h2;h3;h4;h5'; 110 config.extraSpecialChars = ['↔']; 111 config.extraPlugins = 'signature,footnote,shortcuts,fontAssist,tags,timestamp,headerbuttons,geshi,wrap,truetype'; //,pastebase64',devtools'; 112 config.contentsLangDirection = ''; 113 if( browser_level.ckgedit_isRTL()) config.contentsLangDirection = 'rtl'; 114 config.pasteFromWordRemoveFontStyles = false; // preserve font style when "paste from word" 115 config.pasteFromWordRemoveStyles = false; // preserve style (color) when "paste from word" 116 config.allowedContent=true; // preserve highlight when "paste from word" 117 config.removeButtons = browser_level.remove_styling(); 118 var font_assist = 'FontAssist'; 119 //config.removeButtons = 'TextColor,BGColor, FontAssist,Font,FontSize'; 120 if(config.removeButtons.match(/FontAssist/)) font_assist = ""; 121 config.addPaste = function () { 122 config.extraPlugins +=',pastebase64'; 123 } 124 125 config.skin = browser_level.getCKEditorGUI() ? browser_level.getCKEditorGUI() : 'moono'; 126 //alert(browser_level.getCKEditorGUI()); 127 config.wrapSyntaxDiv = browser_level.JSINFO['wrapDiv'] ; 128 config.wrapSyntaxSpan = browser_level.JSINFO['wrapSpan'] ; 129 config.ToolBarItemsAlt = { 130 'Signature':'Signature' ,'Footnotes':'Footnotes','Scayt':'Scayt' 131 }; 132 133 if(browser_level.JSINFO['wrapDiv']) { 134 config.wrapSyntaxDiv = browser_level.JSINFO['wrapDiv']; 135 } 136 else config.wrapSyntaxDiv = ""; 137 if(browser_level.JSINFO['wrapSpan']) { 138 config.wrapSyntaxSpan = browser_level.JSINFO['wrapSpan']; 139 } 140 else config.wrapSyntaxSpan = ""; 141 142 if(config.scayt__disable) { 143 config.ToolBarItemsAlt['Scayt'] = ""; 144 config.disableNativeSpellChecker = false; 145 } 146 147 var xtra = browser_level.extra_plugins(config); 148 149 if(!xtra) { 150 xtra = 'Msword,Geshi'; 151 } 152 else { 153 var xtras = xtra.split(','); 154 if(xtras.indexOf('Msword') == -1) { 155 xtra += ',Msword'; 156 } 157 if(xtras.indexOf('Geshi') == -1) { 158 xtra += ',Geshi'; 159 } 160 } 161 162 if (browser_level.JSINFO['has_tags']) { 163 xtra+=',Tags'; 164 } 165 if(browser_level.JSINFO['has_wrap']) { 166 xtra+=',Wrap'; 167 } 168 config.ToolBarItemsExtra = ""; 169 170 171 172 if(xtra) { 173 config.ToolBarItemsExtra = xtra.split(','); 174 if(xtra) { 175 config.extraPlugins += ',' + xtra.toLowerCase(); 176 } 177 } 178 179 config.toolbar_Dokuwiki = 180 [ 181 {name: 'header_buttons', items: ['same_header', 'lower_header', 'higher_header', 'none_header']}, 182 { name: 'basicstyles', items : [ 'Bold','Italic','Underline', 'TrueType', 'Strike','Subscript','Superscript','-','RemoveFormat' ] }, 183 { name: 'editing', items : [ 'Find','Replace','-','SelectAll','-'] }, 184 { name: 'insert', items : [ 'Image','Table','HorizontalRule','Smiley','SpecialChar', config.ToolBarItemsAlt['Signature'] ,config.ToolBarItemsAlt['Footnotes'] ]}, 185 { name: 'links', items : [ 'Link','Unlink' ] }, 186 { name: 'styles', items : [ 'Format', 'Styles' ,'Font','FontSize'] }, 187 { name: 'colors', items : [ 'TextColor','BGColor', font_assist ] }, 188 { name: 'paragraph', items : [ 'NumberedList','BulletedList','Indent','Outdent','Blockquote'] }, 189 { name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] }, 190 { name: 'basicstyles', items: [ 'basicstyles', 'cleanup',config.ToolBarItemsAlt['Scayt'] ] }, 191 { name: 'tools', items : ['Source', 'Maximize','-','About'] }, 192 {name: 'extras', items: config.ToolBarItemsExtra } 193 194 ]; 195 196 config.toolbar_DokuwikiNoGuest = 197 [ 198 { name: 'styles', items : [ 'Source'] }, 199 { name: 'tools', items : [ 'About' ] } 200 ]; 201 202 203 config.toolbar_DokuwikiGuest = 204 [ 205 { name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] }, 206 { name: 'editing', items : [ 'Find','Replace','-','SelectAll'] }, 207 { name: 'insert', items : [ 'Table','HorizontalRule','Smiley','SpecialChar', 'Footnotes'] }, 208 { name: 'styles', items : [ 'Format', 'Styles' ] }, 209 { name: 'paragraph', items : [ 'NumberedList','BulletedList','Indent','Outdent'] }, 210 { name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','-','Undo','Redo' ] }, 211 { name: 'basicstyles', items: [ 'basicstyles', 'cleanup' ] }, 212 { name: 'tools', items : [ 'Maximize','-','About' ] }, 213 ]; 214 215config.wrap_lang; 216var params = 'call=wrap_lang&lang=' + CKEDITOR.lang.detect( 'en' ) ; 217var get_wrap_lang = function() { 218 config.jquery.post( 219 config.doku_url + 'lib/exe/ajax.php', 220 params , 221 function (data,status) { 222 if(status == "success") { 223 config.wrap_lang = JSON.parse(data); 224 } 225 else alert('lang failed'); 226 }, 227 'html' 228 ); 229} 230get_wrap_lang(); 231config.dokuSmileyPath = config.doku_url + 'lib/images/smileys/'; 232config.dokuSmileyImages = 233 [['8-)','icon_cool.gif'], 234 ['8-O','icon_eek.gif'], 235 [':-(','icon_sad.gif'], 236 [':-)','icon_smile.gif'], 237 ['=)','icon_smile2.gif'], 238 [':-/','icon_doubt.gif'], 239 [':-?','icon_confused.gif'], 240 [':-D','icon_biggrin.gif'], 241 [':-P','icon_razz.gif'], 242 243 [':-O','icon_surprised.gif'], 244 [':-X','icon_silenced.gif'], 245 246 [':-|','icon_neutral.gif'], 247 [';-)','icon_wink.gif'], 248 ['^_^','icon_fun.gif'], 249 [':?:','icon_question.gif'], 250 [':!:','icon_exclaim.gif'], 251 ['LOL','icon_lol.gif']]; 252 253 254 255 256function do_smileys() { 257 config.jquery.post( 258 ckedit_path + "dwsmileys.php", 259 function(data,status) { 260 if(status == "success") { 261 config.dokuSmileyConfImages = new Array(); 262 smileys = data.replace(/#.*?\n/g,""); 263 smileys = smileys.replace(/^[\s\n]+$/mg,""); 264 smileys=smileys.split(/\n/); 265 if(!smileys[0]) smileys.shift(); 266 if(!smileys[smileys.length-1]) smileys.pop(); 267 for(var i=0; i < smileys.length; i++) { 268 var a = smileys[i].split(/\s+/); 269 if(a[0].match(/DELETEME/) || a[0].match(/FIXME/)) { 270 config.dokuFixmeSmiley.push( a); 271 continue; 272 } 273 else if(a[0].match(/^([A-Z])+$/) && (!a[0].match(/^LOL$/))) { 274 config.dokuLargeSmiley.push(a); 275 config.dokuSmileyConfImages[i] =" "; 276 continue; 277 } 278 else config.dokuSmileyConfImages[i] = a; 279 } 280 } 281 }, 282 'html' 283 ); 284} 285 286config.removePlugins = 'liststyle'; 287config.dokuFixmeSmiley = new Array(); 288config.dokuLargeSmiley = new Array(); 289config.dokuSmileyConfImages; 290try { 291 do_smileys(); 292}catch(ex){ 293 294} 295 296config.ckgProtocols = ""; 297var get_dw_protocols = function() { 298 config.jquery.post( 299 ckedit_path + "schemes.php", 300 function (data,status) { 301 if(status == "success") { 302 config.ckgProtocols=data; 303 } else config.ckgProtocols = 'no data'; 304 }, 305 'html' 306 ); 307} 308get_dw_protocols(); 309config.ckgEditorVer; 310var get_ckgeditor_version = function() { 311 config.jquery.post( 312 ckedit_path + "get_version.php", 313 function (data,status) { 314 if(status == "success") { 315 config.ckgEditorVer=data; 316 } 317 else config.ckgEditorVer = "Dokuwiki plugin: ckgedit"; 318 }, 319 'html' 320 ); 321} 322 323var getIwikiData = function() { 324 config.jquery.ajax({ 325 method: "POST", 326 url: config.doku_url + 'lib/exe/ajax.php', 327 data: { call: 'iwiki_list'}, 328 async: true, 329 dataType: "json", 330 }) 331 .done(function(data) 332 { 333 retv = data; 334 config.ckgeditIwikiData = retv; 335 }) 336 .fail(function(jqXHR, textStatus, errorThrown ) 337 { 338 alert(textStatus); 339 alert(errorThrown); 340 }); 341}; 342getIwikiData(); 343 344 var SelectOptions = function() { 345 var retv; 346 config.jquery.ajax( 347 config.doku_url + 'lib/exe/ajax.php', 348 { 349 data: 350 { 351 call: 'geshi_sel' 352 }, 353 type: "GET", 354 dataType: "html", 355 success: function(data, textStatus, jqXHR) 356 { 357 config.geshi_opts = data; 358 }, 359 error: function(jqXHR, textStatus, errorThrown ) 360 { 361 alert(textStatus); 362 alert(errorThrown); 363 } 364 } 365 ); 366 // return retv; 367 }; 368 SelectOptions(); 369config.filebrowserWindowWidth='60%'; 370config.filebrowserWindowHeight = '60%'; 371//config.filebrowserWindowFeatures = 'location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes,left=20'; 372 373get_ckgeditor_version(); 374 375CKEDITOR.lang['default'] = {}; 376CKEDITOR.lang['default']['fbrowser'] = { 377FileBrowserError_101: 'Folder already exists.', 378FileBrowserError_102: 'Invalid folder name', 379FileBrowserError_103: 'You have no permissions to create the folder.', 380FileBrowserError_110: 'Unknown error creating folder', 381FileBrowserError_201: 'A file with the same name is already available. The uploaded file has been renamed to: ', 382FileBrowserError_202: 'Invalid file', 383FileBrowserError_203: 'You do not have permission to upload files to this folder. If you think this is incorrect please notify your administrator.', 384FileBrowserError_204: 'Unable to delete the selected file', 385FileBrowserError_205: 'Unable to rename the selected file; check your directory/write permisssions', 386FileBrowserError_206: ' already exists; you must either delete or rename it. ', 387FileBrowserError_default: 'Error on your request. Error number: ', 388FileBrowserError_Ajax: 'Your browser does not support AJAX.', 389FileBrowserError_XML: 'The server didn\'t reply with a proper XML data. Please check your configuration.' , 390FileBrowserError_Folder_Submit: 'Please type the folder name.', 391FileBrowserError_File_Submit: 'Please select a file from your computer', 392FileBrowserError_Upload: 'Error on upload. Error number: ', 393FileBrowserError_Connector: 'The connector is disabled. Check editor/filemanager/connectors/php/config.php', 394FileBrowserError_Command: 'Unsupported command: ', 395FileBrowserError_Type: 'Invalid type specified: ', 396FolderMoveWarning: 'You can only move files to a folder one level below the current directory', 397FileBrowserError_301: "The uploaded file exceeds the upload_max_filesize directive in php.ini.", 398FileBrowserError_302: "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.", 399FileBrowserError_303: "The uploaded file was only partially uploaded.", 400FileBrowserError_304: "No file was uploaded.", 401FileBrowserError_306: "Missing a temporary folder.", 402FileBrowserError_307: "Failed to write file to disk.", 403FileBrowserError_308: "PHP does not provide a way to ascertain which extension caused the file upload to stop; examining the list of loaded extensions with phpinfo() may help.", 404DlgFileBrowserUpMsg: "Upload a new file in this folder", 405DlgFileBrowserRead : "read-only", 406DlgFileBrowserWrite : "uploadable", 407DlgFileBrowserNewFolder: "Create Folder", 408DlgFileBrowserResourceType: "Resource Type", 409DlgLnkUpload : "Upload", 410DlgFileBrowserMove: "Move", 411InternalLink: "internal link", 412InternalMedia: "internal media", 413MediaFileLink: "link to media file", 414SMBLabel: "Samba Share", 415GetHeadingsLabel: 'Get Headings' , 416QStringLabel: 'Query String (For example: value_1=1&value_2=2) ', 417ResetQS: 'Reset Query String', 418NotSetOption: 'Not Set', 419AdvancedInfo: "To create anchors from Dokuwiki headers, click on the Get Headings button, select the header, click OK. You can go back, select a new page and get new headers.", 420AdvancedTabPrompt: 'Use the advanced tab to create page anchors and query strings', 421SMBExample: "Enter your share as: \\\\Server\\directory\\file", 422 InterWikiLink: "Interwiki Link", 423DlgFileBrowserWaitingMsg: 'Loading files, please wait.', 424}; 425CKEDITOR.lang['default']['footnote'] = { 426FootNoteInfo: '<div style="padding: 18px;font-size:125%;line-height:125%;">'+ 427 '<ul style="list-style-type:disc;"><li>To create a footnote enter the footnote text into the editing box and click OK</li>'+ 428 '<li>To edit a footnote enter the footnote id into the id box and click the Load button. <br /> The footnote will '+ 429 'appear in the editing box, where you can then edit it.<br /> When you are finished editing, click OK to save.</li>'+ 430 '<li> A footnote id has this form: <b>fckgL_<n></b>, where n is the number of the note.</li></ul></div>', 431ToolTip: 'Insert a footnote', 432Settings: 'Settings', 433Header: 'This dialog window lets you create and edit footnotes.', 434Label_1 :'Footnote Text (required)', 435Label_2: 'Footnote Id: ', 436LoadButtonLabel : 'Load Note In Editor', 437Title : 'Footnote Dialog', 438Validate: 'The footnote text field cannot be empty.', 439 440}; 441CKEDITOR.lang['default']['fontassist'] = { 442Title: 'Font Plugin Editor', 443ToolTip: 'Check and Revise Font Styling', 444MainHeader: 'View and optionally alter text styled with the font plugin .', 445SelectColor : ' Select Color', 446SelectedTextColor : 'Selected Text Color', 447SelectedBGColor : 'Selected Background Color', 448BGColors : 'Background Colors', 449InfoText : '<div style="max-width:400px; font-size: 12pt; white-space: pre-wrap;border:1px solid #cccccc; margin:auto; height: 350px; overflow:auto;">' + 450 'This tool works with the font plugin and is used to update the font plugin\'s syntax and/or view its enclosed text. ' + 451'Clicking anywhere on the plugin syntax or its text will enable you to check the appearance of the font, its colors, and its size.'+ 452'<br /><br />You can also update the plugin syntax in place. To do this you must select both the font syntax itself and the enclosed text:' + 453'<p style="text-indent: 50px; font-size: 12pt;"> <font. . . >text</font></p>' + 454'Then whatever changes you make with this tool can be inserted into the editor window, by clicking OK, and will replace the current font syntax. ' + 455'<br /><br />The font syntax will appear in the textbox below the display window and is updated with each change. '+ 456'Clicking on the text will select the text for copying.</div>', 457Main: 'Main', 458Text : 'Text', 459IfChecked : ' If checked, uncheck to activate OK button', 460Fonts : 'Fonts', 461FontSizes : 'Font Sizes (px)', 462ResetFont : 'Reset font', 463ResetAll : 'Reset all', 464TextColors : 'Text Colors', 465Accept :'Accept', 466Reset : 'Reset', 467none : 'none', 468}; 469CKEDITOR.lang['default']['signature'] = { 470ToolTip: 'Insert signature' 471}; 472 473config.allowedContent = true; 474 475}; //end config.js 476