Changeset 2854:2d4e6314b899 for plugins/dcCKEditor/_post_config.php
- Timestamp:
- 12/17/14 08:04:25 (11 years ago)
- Branch:
- 2.7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/dcCKEditor/_post_config.php
r2835 r2854 58 58 59 59 var editor = CKEDITOR.instances[$.getEditorName()]; 60 if ( !confirmClosePage.formSubmit && editor.checkDirty()) {60 if (editor!==undefined && !confirmClosePage.formSubmit && editor.checkDirty()) { 61 61 e.returnValue = confirmClosePage.prompt; 62 62 return confirmClosePage.prompt; … … 88 88 } 89 89 ?> 90 91 $('<?php echo $dcckeditor_textareas;?>').ckeditor({ 90 if (dotclear.ckeditor_context===undefined || dotclear.ckeditor_tags_context[dotclear.ckeditor_context]===undefined) { 91 return; 92 } 93 $(dotclear.ckeditor_tags_context[dotclear.ckeditor_context].join(',')).ckeditor({ 92 94 <?php 93 95 $defautExtraPlugins = 'entrylink,dclink,media,justify,colorbutton,format'; … … 156 158 items: [ 157 159 'EntryLink','dcLink','Media','-', 158 'Source' , 'Maximize'160 'Source' 159 161 <?php if (!empty($dcckeditor_textcolor_button)):?> 160 162 ,'TextColor' … … 162 164 ] 163 165 }, 166 { 167 name: 'special', 168 items: [ 169 'Maximize' 170 ] 171 }, 164 172 <?php // add extra buttons comming from dotclear plugins 165 173 if (!empty($extraPlugins) && count($extraPlugins)>0) {
Note: See TracChangeset
for help on using the changeset viewer.