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