Changeset 3052:6bd009da1432 for plugins/dcCKEditor
- Timestamp:
- 07/12/15 16:42:27 (10 years ago)
- Branch:
- default
- Location:
- plugins/dcCKEditor
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/dcCKEditor/_install.php
r3050 r3052 30 30 $settings->dcckeditor->put('table_button', false, 'boolean', 'Add table button?', false, true); 31 31 $settings->dcckeditor->put('clipboard_buttons', false, 'boolean', 'Add clipboard buttons?', false, true); 32 $settings->dcckeditor->put('disable_native_spellchecker', true, 'boolean', 'Disables the built-in spell checker if the browser provides one?', false, true); 32 33 33 34 $core->setVersion('dcCKEditor', $version); -
plugins/dcCKEditor/_post_config.php
r3040 r3052 79 79 80 80 CKEDITOR.timestamp = ''; 81 <?php if (!empty(!$dcckeditor_disable_native_spellchecker)):?> 82 CKEDITOR.disableNativeSpellChecker = false; 83 <?php endif;?> 81 84 CKEDITOR.config.skin = 'dotclear,'+dotclear.dcckeditor_plugin_url+'/js/ckeditor-skins/dotclear/'; 82 85 CKEDITOR.config.baseHref = dotclear.base_url; … … 98 101 } 99 102 ?> 100 101 102 103 if (dotclear.ckeditor_context===undefined || dotclear.ckeditor_tags_context[dotclear.ckeditor_context]===undefined) { 104 return; 105 } 103 106 $(dotclear.ckeditor_tags_context[dotclear.ckeditor_context].join(',')).ckeditor({ 104 107 <?php -
plugins/dcCKEditor/inc/_config.php
r2972 r3052 62 62 $dcckeditor_clipboard_buttons = (empty($_POST['dcckeditor_clipboard_buttons']))?false:true; 63 63 $core->blog->settings->dcckeditor->put('clipboard_buttons', $dcckeditor_clipboard_buttons, 'boolean'); 64 65 $dcckeditor_disable_native_spellchecker = (empty($_POST['dcckeditor_disable_native_spellchecker']))?false:true; 66 $core->blog->settings->dcckeditor->put('disable_native_spellchecker', $dcckeditor_disable_native_spellchecker, 'boolean'); 64 67 } 65 68 -
plugins/dcCKEditor/index.php
r2972 r3052 25 25 $dcckeditor_table_button = $core->blog->settings->dcckeditor->table_button; 26 26 $dcckeditor_clipboard_buttons = $core->blog->settings->dcckeditor->clipboard_buttons; 27 $dcckeditor_disable_native_spellchecker = $core->blog->settings->dcckeditor->disable_native_spellchecker; 27 28 28 29 if (!empty($_GET['config'])) { -
plugins/dcCKEditor/tpl/index.tpl
r2972 r3052 60 60 <?php echo __('Copy, Paste, Paste Text, Paste from Word');?> 61 61 </p> 62 <p> 63 <?php echo form::checkbox('dcckeditor_disable_native_spellchecker', 1, $dcckeditor_disable_native_spellchecker);?> 64 <label class="classic" for="dcckeditor_disable_native_spellchecker"> <?php echo __('Disables the built-in spell checker if the browser provides one');?></label> 65 </p> 62 66 </div> 63 67 <?php endif;?>
Note: See TracChangeset
for help on using the changeset viewer.