@@ -101,17 +101,17 @@ discard block |
||
101 | 101 | $this->tool = 'textarea'; |
102 | 102 | } |
103 | 103 | |
104 | - if ( isset($poscursor['find']) ) { |
|
104 | + if (isset($poscursor['find'])) { |
|
105 | 105 | $posy = 0; |
106 | 106 | $lines = explode("\n", $content); |
107 | 107 | $nblines = count($lines); |
108 | - for ($i = 0 ; $i < $nblines ; $i++) { |
|
108 | + for ($i = 0; $i < $nblines; $i++) { |
|
109 | 109 | if (preg_match('/'.$poscursor['find'].'/', $lines[$i])) { |
110 | 110 | $posy = $i; |
111 | 111 | break; |
112 | 112 | } |
113 | 113 | } |
114 | - if ($posy != 0 ) $poscursor['y'] = $posy; |
|
114 | + if ($posy != 0) $poscursor['y'] = $posy; |
|
115 | 115 | } |
116 | 116 | |
117 | 117 | // Define some properties |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | define('REQUIRE_CKEDITOR', '1'); |
175 | 175 | } |
176 | 176 | |
177 | - $skin = getDolGlobalString('FCKEDITOR_SKIN', 'moono-lisa'); // default with ckeditor 4.6 : moono-lisa |
|
177 | + $skin = getDolGlobalString('FCKEDITOR_SKIN', 'moono-lisa'); // default with ckeditor 4.6 : moono-lisa |
|
178 | 178 | |
179 | 179 | $pluginstodisable = 'elementspath,save,flash,div,anchor'; |
180 | 180 | if (!getDolGlobalString('FCKEDITOR_ENABLE_SPECIALCHAR')) { |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | $pluginstodisable .= ',exportpdf'; |
191 | 191 | } |
192 | 192 | if (getDolGlobalInt('MAIN_DISALLOW_URL_INTO_DESCRIPTIONS') == 2) { |
193 | - $this->uselocalbrowser = 0; // Can't use browser to navigate into files. Only links with "<img src=data:..." are allowed. |
|
193 | + $this->uselocalbrowser = 0; // Can't use browser to navigate into files. Only links with "<img src=data:..." are allowed. |
|
194 | 194 | } |
195 | 195 | $scaytautostartup = ''; |
196 | 196 | if (getDolGlobalString('FCKEDITOR_ENABLE_SCAYT_AUTOSTARTUP')) { |
@@ -275,10 +275,10 @@ discard block |
||
275 | 275 | filebrowserImageWindowWidth : \'900\', |
276 | 276 | filebrowserImageWindowHeight : \'500\''; |
277 | 277 | } |
278 | - $out .= ' })'.$morejs; // end CKEditor.replace |
|
278 | + $out .= ' })'.$morejs; // end CKEditor.replace |
|
279 | 279 | // Show the CKEditor javascript object once loaded is ready 'For debug) |
280 | 280 | //$out .= '; CKEDITOR.on(\'instanceReady\', function(ck) { ck.editor.removeMenuItem(\'maximize\'); ck.editor.removeMenuItem(\'Undo\'); ck.editor.removeMenuItem(\'undo\'); console.log(ck.editor); console.log(ck.editor.toolbar[0]); }); '; |
281 | - $out .= '});'."\n"; // end document.ready |
|
281 | + $out .= '});'."\n"; // end document.ready |
|
282 | 282 | $out .= '</script>'."\n"; |
283 | 283 | } |
284 | 284 | } |