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
85     var ckedit_path;
86     if(top.JSINFO['ckg_canonical']) {
87          ckedit_path =  top.DOKU_BASE + 'lib/plugins/ckgdoku/ckeditor/';
88          config.doku_url = top.DOKU_BASE;
89          config.ckedit_path = top.DOKU_BASE + 'lib/plugins/ckgdoku/ckeditor/';
90     }
91     else {
92      ckedit_path =  window.location.protocol +'//' + top.dokuBase + 'lib/plugins/ckgdoku/ckeditor/';
93      config.doku_url = window.location.protocol+ '//' + top.dokuBase;
94      config.ckedit_path = window.location.protocol +'//' + top.dokuBase + 'lib/plugins/ckgdoku/ckeditor/';
95     }
96      config.jquery = top.jQuery;
97    //  config.format_code = { element : 'code', attributes : { 'class' : 'dwcode' } };
98	// Define changes to default configuration here.
99	// For the complete reference:
100	// http://docs.ckeditor.com/#!/api/CKEDITOR.config
101      config.scayt__disable = false;
102      top.ckgdoku_language_chk(config);  //resets language if $conf['other_lang'] != 'default' and resets auto scayt to true of false
103     // config.scayt_autoStartup = true;
104      config.format_tags = 'p;h1;h2;h3;h4;h5';
105      config.extraSpecialChars  = ['↔'];
106      config.extraPlugins = 'signature,footnote,shortcuts,fontAssist,tags,timestamp,headerbuttons,geshi,wrap';  //,pastebase64',devtools';
107      config.contentsLangDirection = '';
108      if( top.ckgdoku_isRTL()) config.contentsLangDirection = 'rtl';
109      config.pasteFromWordRemoveFontStyles = false;   // preserve font style when "paste from word"
110      config.pasteFromWordRemoveStyles = false;       // preserve style (color) when "paste from word"
111      config.allowedContent=true;                     // preserve highlight when "paste from word"
112     config.removeButtons = top. remove_styling();
113     var font_assist = 'FontAssist';
114     //config.removeButtons = 'TextColor,BGColor, FontAssist,Font,FontSize';
115     if(config.removeButtons.match(/FontAssist/)) font_assist = "";
116     config.addPaste = function () {
117         config.extraPlugins +=',pastebase64';
118     }
119
120    config.skin =  top.getCKEditorGUI() ? top.getCKEditorGUI() : 'moono';
121    //alert(top.getCKEditorGUI());
122     config.wrapSyntaxDiv = top.JSINFO['wrapDiv'] ;
123     config.wrapSyntaxSpan = top.JSINFO['wrapSpan'] ;
124     config.ToolBarItemsAlt = {
125     'Signature':'Signature' ,'Footnotes':'Footnotes', 'Tags':"",'Wrap':"",'Scayt':'Scayt'
126     };
127
128    if (top.JSINFO['has_tags']) {
129		config.ToolBarItemsAlt['Tags']='Tags';
130	}
131    if(top.JSINFO['has_wrap']) {
132        config.ToolBarItemsAlt['Wrap']='Wrap';
133    }
134    if(top.JSINFO['wrapDiv']) {
135       config.wrapSyntaxDiv = top.JSINFO['wrapDiv'];
136    }
137    else config.wrapSyntaxDiv = "";
138    if(top.JSINFO['wrapSpan']) {
139       config.wrapSyntaxSpan = top.JSINFO['wrapSpan'];
140    }
141    else config.wrapSyntaxSpan = "";
142
143    if(config.scayt__disable) {
144               config.ToolBarItemsAlt['Scayt'] = "";
145    }
146
147     var xtra = top.extra_plugins(config);
148     if (top.JSINFO['has_tags']) {
149         xtra+=',Tags';
150     }
151     if(top.JSINFO['has_wrap']) {
152         xtra+=',Wrap';
153     }
154     config.ToolBarItemsExtra = "";
155     if(xtra) {
156         config.ToolBarItemsExtra = xtra.split(',');
157         if(xtra) {
158           config.extraPlugins +=  ',' + xtra.toLowerCase();
159         }
160     }
161
162  config.toolbar_Dokuwiki =
163	[
164	{name: 'header_buttons', items: ['same_header', 'lower_header', 'higher_header', 'none_header']},
165    	{ name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },
166
167		{ name: 'editing', items : [ 'Find','Replace','-','SelectAll','-'] },
168		{ name: 'insert', items : [ 'Image','Table','HorizontalRule','Smiley','SpecialChar',  config.ToolBarItemsAlt['Signature'] ,config.ToolBarItemsAlt['Footnotes'] ]},
169   		{ name: 'links', items : [ 'Link','Unlink' ] },
170		{ name: 'styles', items : [ 'Format', 'Styles' ,'Font','FontSize'] },
171    	{ name: 'colors', items : [ 'TextColor','BGColor', font_assist ] },
172		{ name: 'paragraph', items : [ 'NumberedList','BulletedList','Indent','Outdent'] },
173   		{ name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
174    	{ name: 'basicstyles', items: [ 'basicstyles', 'cleanup',config.ToolBarItemsAlt['Scayt'] ] },
175		{ name: 'tools', items : ['Source', 'Maximize','-','About'] },
176         {name: 'extras', items: config.ToolBarItemsExtra }
177
178	];
179
180     config.toolbar_DokuwikiNoGuest =
181	[
182		{ name: 'styles', items : [ 'Source'] },
183		{ name: 'tools', items : [ 'About' ] }
184	];
185
186
187    config.toolbar_DokuwikiGuest =
188	[
189    	{ name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },
190		{ name: 'editing', items : [ 'Find','Replace','-','SelectAll'] },
191		{ name: 'insert', items : [ 'Table','HorizontalRule','Smiley','SpecialChar', 'Footnotes'] },
192		{ name: 'styles', items : [ 'Format', 'Styles' ] },
193		{ name: 'paragraph', items : [ 'NumberedList','BulletedList','Indent','Outdent'] },
194   		{ name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','-','Undo','Redo' ] },
195    	{ name: 'basicstyles', items: [ 'basicstyles', 'cleanup' ] },
196		{ name: 'tools', items : [ 'Maximize','-','About' ] },
197
198	];
199
200
201config.wrap_lang;
202var params =  'call=wrap_lang&lang=' + CKEDITOR.lang.detect( 'en' ) ;
203var get_wrap_lang = function() {
204    config.jquery.post(
205           config.doku_url + 'lib/exe/ajax.php',
206            params ,
207            function (data,status) {
208                if(status == "success") {
209                 config.wrap_lang = JSON.parse(data);
210                }
211                else alert('lang failed');
212            },
213            'html'
214        );
215}
216get_wrap_lang();
217config.dokuSmileyPath = config.doku_url + 'lib/images/smileys/';
218config.dokuSmileyImages	=
219                          [['8-)','icon_cool.gif'],
220                      	  ['8-O','icon_eek.gif'],
221                      	  [':-(','icon_sad.gif'],
222                      	  [':-)','icon_smile.gif'],
223                      	  ['=)','icon_smile2.gif'],
224                      	  [':-/','icon_doubt.gif'],
225                      	  [':-?','icon_confused.gif'],
226                      	  [':-D','icon_biggrin.gif'],
227                      	  [':-P','icon_razz.gif'],
228
229                      	  [':-O','icon_surprised.gif'],
230                      	  [':-X','icon_silenced.gif'],
231
232                      	  [':-|','icon_neutral.gif'],
233                      	  [';-)','icon_wink.gif'],
234                      	  ['^_^','icon_fun.gif'],
235                      	  [':?:','icon_question.gif'],
236                      	  [':!:','icon_exclaim.gif'],
237                      	  ['LOL','icon_lol.gif']];
238
239
240
241
242function do_smileys() {
243    config.jquery.post(
244            ckedit_path + "dwsmileys.php",
245            function(data,status) {
246                if(status == "success") {
247                   config.dokuSmileyConfImages = new Array();
248                   smileys = data.replace(/#.*?\n/g,"");
249                   smileys = smileys.replace(/^[\s\n]+$/mg,"");
250                   smileys=smileys.split(/\n/);
251                   if(!smileys[0]) smileys.shift();
252                   if(!smileys[smileys.length-1]) smileys.pop();
253                   for(var i=0; i < smileys.length; i++) {
254                        var a = smileys[i].split(/\s+/);
255                        if(a[0].match(/DELETEME/) || a[0].match(/FIXME/)) {
256                           config.dokuFixmeSmiley.push( a);
257                           continue;
258                        }
259                        else if(a[0].match(/^([A-Z])+$/) && (!a[0].match(/^LOL$/))) {
260                             config.dokuLargeSmiley.push(a);
261                             config.dokuSmileyConfImages[i]  =" ";
262                             continue;
263                        }
264                        else config.dokuSmileyConfImages[i] = a;
265                  }
266                }
267             },
268            'html'
269        );
270}
271
272config.removePlugins = 'liststyle';
273config.dokuFixmeSmiley = new Array();
274config.dokuLargeSmiley = new Array();
275config.dokuSmileyConfImages;
276try {
277   do_smileys();
278}catch(ex){
279
280}
281
282config.ckgEditorVer;
283var get_ckgdoku_version = function() {
284    config.jquery.post(
285            ckedit_path + "get_version.php",
286            function (data,status) {
287                if(status == "success") {
288                    config.ckgEditorVer=data;
289                }
290                else config.ckgEditorVer = "Dokuwiki plugin: ckgdoku";
291            },
292            'html'
293        );
294}
295
296  var SelectOptions = function() {
297         var retv;
298         config.jquery.ajax(
299          config.doku_url + 'lib/exe/ajax.php',
300          {
301            data:
302              {
303                call: 'geshi_sel'
304              },
305            type: "GET",
306            dataType: "html",
307            success: function(data, textStatus, jqXHR)
308              {
309                  config.geshi_opts = data;
310              },
311            error: function(jqXHR, textStatus, errorThrown )
312              {
313                alert(textStatus);
314                alert(errorThrown);
315              }
316          }
317        );
318      //  return retv;
319    };
320    SelectOptions();
321config.filebrowserWindowWidth='60%';
322config.filebrowserWindowHeight = '60%';
323//config.filebrowserWindowFeatures = 'location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes,left=20';
324
325get_ckgdoku_version();
326
327CKEDITOR.lang['default'] = {};
328CKEDITOR.lang['default']['fbrowser'] = {
329FileBrowserError_101:	'Folder already exists.',
330FileBrowserError_102:	'Invalid folder name',
331FileBrowserError_103:   'You have no permissions to create the folder.',
332FileBrowserError_110:   'Unknown error creating folder',
333FileBrowserError_201:   'A file with the same name is already available. The uploaded file has been renamed to: ',
334FileBrowserError_202:   'Invalid file',
335FileBrowserError_203:   'You do not have permission to upload files to this folder. If you think this is incorrect please notify your administrator.',
336FileBrowserError_204:   'Unable to delete the selected file',
337FileBrowserError_205:  'Unable to rename the selected file; check your directory/write permisssions',
338FileBrowserError_206: ' already exists; you must either delete or rename it. ',
339FileBrowserError_default: 'Error on your request. Error number: ',
340FileBrowserError_Ajax: 'Your browser does not support AJAX.',
341FileBrowserError_XML:  'The server didn\'t reply with a proper XML data. Please check your configuration.' ,
342FileBrowserError_Folder_Submit: 'Please type the folder name.',
343FileBrowserError_File_Submit:  'Please select a file from your computer',
344FileBrowserError_Upload: 'Error on upload. Error number: ',
345FileBrowserError_Connector: 'The connector is disabled. Check editor/filemanager/connectors/php/config.php',
346FileBrowserError_Command: 'Unsupported command: ',
347FileBrowserError_Type:  'Invalid type specified: ',
348FolderMoveWarning:  'You can only move files to a folder one level below the current directory',
349FileBrowserError_301: "The uploaded file exceeds the upload_max_filesize directive in php.ini.",
350FileBrowserError_302: "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.",
351FileBrowserError_303: "The uploaded file was only partially uploaded.",
352FileBrowserError_304: "No file was uploaded.",
353FileBrowserError_306:  "Missing a temporary folder.",
354FileBrowserError_307:  "Failed to write file to disk.",
355FileBrowserError_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.",
356DlgFileBrowserUpMsg: "Upload a new file in this folder",
357DlgFileBrowserRead  : "read-only",
358DlgFileBrowserWrite : "uploadable",
359DlgFileBrowserNewFolder: "Create Folder",
360DlgFileBrowserResourceType: "Resource Type",
361DlgLnkUpload		: "Upload",
362DlgFileBrowserMove: "Move",
363InternalLink: "internal link",
364InternalMedia: "internal media",
365MediaFileLink: "link to media file",
366SMBLabel: "Samba Share",
367GetHeadingsLabel: 'Get Headings'	,
368QStringLabel: 'Query String (For example: value_1=1&value_2=2) ',
369ResetQS: 'Reset Query String',
370NotSetOption: 'Not Set',
371AdvancedInfo: "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.",
372AdvancedTabPrompt: 'Use the advanced tab to create page anchors and query strings',
373SMBExample: "Enter your share as: \\\\Server\\directory\\file",
374 InterWikiLink: "Interwiki Link",
375DlgFileBrowserWaitingMsg: 'Loading files, please wait.',
376};
377CKEDITOR.lang['default']['footnote'] = {
378FootNoteInfo: '<div style="padding: 18px;font-size:125%;line-height:125%;">'+
379           '<ul style="list-style-type:disc;"><li>To create a footnote enter the footnote text into the editing box and click OK</li>'+
380           '<li>To edit a footnote enter the footnote id into the id box and click the Load button. <br /> The footnote will '+
381           'appear in the editing box, where you can then edit it.<br /> When you are finished editing, click OK to save.</li>'+
382           '<li> A footnote id has this form: <b>fckgL_&lt;n&gt;</b>, where n is the number of the note.</li></ul></div>',
383ToolTip: 'Insert a footnote',
384Settings: 'Settings',
385Header: 'This dialog window lets you create and edit footnotes.',
386Label_1 :'Footnote Text (required)',
387Label_2: 'Footnote Id: ',
388LoadButtonLabel : 'Load Note In Editor',
389Title : 'Footnote Dialog',
390Validate: 'The footnote text field cannot be empty.',
391
392};
393CKEDITOR.lang['default']['fontassist'] = {
394Title: 'Font Plugin Editor',
395ToolTip: 'Check and Revise Font Styling',
396MainHeader: 'View and optionally alter text styled with the font plugin .',
397SelectColor : ' Select Color',
398SelectedTextColor : 'Selected Text Color',
399SelectedBGColor : 'Selected Background Color',
400BGColors : 'Background Colors',
401InfoText :  '<div style="max-width:400px; font-size: 12pt; white-space: pre-wrap;border:1px solid #cccccc; margin:auto; height: 350px; overflow:auto;">' +
402 'This tool works with the font  plugin and is used to update the font plugin\'s syntax and/or view its enclosed text. ' +
403'Clicking anywhere on the plugin syntax or its text will enable you to check the appearance of the font, its colors, and its size.'+
404'<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:' +
405'<p style="text-indent: 50px; font-size: 12pt;">  &lt;font. . . &gt;text&lt;/font&gt;</p>' +
406'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. ' +
407'<br /><br />The font syntax will appear in the textbox below the display window and is updated with each change. '+
408'Clicking on the text will select the text for copying.</div>',
409Main: 'Main',
410Text : 'Text',
411IfChecked : ' If checked, uncheck to activate OK button',
412Fonts : 'Fonts',
413FontSizes :  'Font Sizes (px)',
414ResetFont : 'Reset font',
415ResetAll : 'Reset all',
416TextColors : 'Text Colors',
417Accept :'Accept',
418Reset : 'Reset',
419none : 'none',
420};
421CKEDITOR.lang['default']['signature'] = {
422ToolTip: 'Insert signature'
423};
424
425config.allowedContent = true;
426
427};  //end config.js
428