Changeset 3897:61304e9616a6 for plugins/dcCKEditor/_post_config.php
- Timestamp:
- 10/01/18 11:24:07 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/dcCKEditor/_post_config.php
r3769 r3897 108 108 <?php endif;?> 109 109 110 CKEDITOR.config.defaultLanguage = dotclear.user_language; 111 CKEDITOR.config.language = dotclear.user_language; 112 CKEDITOR.config.contentsLanguage = dotclear.user_language; 113 110 114 <?php 111 115 if (!empty($extraPlugins) && count($extraPlugins) > 0) { … … 237 241 238 242 CKEDITOR.on('instanceLoaded',function(e) { 239 240 243 // Retrieve textarea element of the instance, then its line-height (in px) and rows values, 241 244 // then apply line-height * rows (min = 6) to the inner height of the instance. … … 250 253 } 251 254 } 252 253 255 }); 254 256 … … 268 270 }); 269 271 272 const ta = document.getElementById(e.editor.name); 273 if (ta !== undefined) { 274 if (ta.lang && e.editor.config.contentsLanguage !== ta.lang) { 275 let config = e.editor.config; 276 config.contentsLanguage = ta.lang; 277 e.editor.destroy(); 278 CKEDITOR.replace(e.editor.name, config); 279 } 280 } 270 281 }); 271 282
Note: See TracChangeset
for help on using the changeset viewer.