Changeset 3090:e4c0a9a29852
- Timestamp:
- 09/08/15 09:16:32 (10 years ago)
- Branch:
- default
- Location:
- plugins/dcCKEditor
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/dcCKEditor/_define.php
r3056 r3090 16 16 /* Description*/ "dotclear CKEditor integration", 17 17 /* Author */ "dotclear Team", 18 /* Version */ "1. 0.3",18 /* Version */ "1.1.0", 19 19 array( 20 20 'permissions' => 'usage,contentadmin', -
plugins/dcCKEditor/_install.php
r3052 r3090 25 25 $settings->dcckeditor->put('list_buttons', true, 'boolean', 'Add list buttons?', false, true); 26 26 $settings->dcckeditor->put('textcolor_button', false, 'boolean', 'Add text color button?', false, true); 27 $settings->dcckeditor->put('background_textcolor_button', false, 'boolean', 'Add background text color button?', false, true); 27 28 $settings->dcckeditor->put('cancollapse_button', false, 'boolean', 'Add collapse button?', false, true); 28 29 $settings->dcckeditor->put('format_select', true, 'boolean', 'Add format selection?', false, true); -
plugins/dcCKEditor/_post_config.php
r3056 r3090 96 96 CKEDITOR.plugins.addExternal('media',dotclear.dcckeditor_plugin_url+'/js/ckeditor-plugins/media/'); 97 97 CKEDITOR.plugins.addExternal('img',dotclear.dcckeditor_plugin_url+'/js/ckeditor-plugins/img/'); 98 <?php if (!empty($dcckeditor_textcolor_button) || !empty($dcckeditor_background_textcolor_button)):?> 99 // button add "More Colors..." can be added if colordialog plugin is enabled 100 CKEDITOR.config.colorButton_enableMore = true; 101 <?php endif;?> 98 102 99 103 <?php if (!empty($extraPlugins) && count($extraPlugins)>0) { … … 120 124 // format tags 121 125 <?php if (!empty($dcckeditor_format_tags)):?> 122 126 format_tags: '<?php echo $dcckeditor_format_tags;?>', 123 127 <?php else:?> 124 128 format_tags: 'p;h1;h2;h3;h4;h5;h6;pre;address', … … 178 182 'Source' 179 183 <?php if (!empty($dcckeditor_textcolor_button)):?> 180 ,'TextColor' 184 ,'TextColor' 185 <?php endif;?> 186 <?php if (!empty($dcckeditor_background_textcolor_button)):?> 187 ,'BGColor' 181 188 <?php endif;?> 182 189 ] 183 190 }, 184 185 186 187 188 189 191 { 192 name: 'special', 193 items: [ 194 'Maximize' 195 ] 196 }, 190 197 <?php // add extra buttons comming from dotclear plugins 191 198 if (!empty($extraPlugins) && count($extraPlugins)>0) { -
plugins/dcCKEditor/inc/_config.php
r3052 r3090 30 30 $dcckeditor_textcolor_button = (empty($_POST['dcckeditor_textcolor_button']))?false:true; 31 31 $core->blog->settings->dcckeditor->put('textcolor_button', $dcckeditor_textcolor_button, 'boolean'); 32 33 $dcckeditor_background_textcolor_button = (empty($_POST['dcckeditor_background_textcolor_button']))?false:true; 34 $core->blog->settings->dcckeditor->put('background_textcolor_button', $dcckeditor_background_textcolor_button, 'boolean'); 32 35 33 36 $dcckeditor_cancollapse_button = (empty($_POST['dcckeditor_cancollapse_button']))?false:true; -
plugins/dcCKEditor/index.php
r3052 r3090 20 20 $dcckeditor_list_buttons = $core->blog->settings->dcckeditor->list_buttons; 21 21 $dcckeditor_textcolor_button = $core->blog->settings->dcckeditor->textcolor_button; 22 $dcckeditor_background_textcolor_button = $core->blog->settings->dcckeditor->background_textcolor_button; 22 23 $dcckeditor_cancollapse_button = $core->blog->settings->dcckeditor->cancollapse_button; 23 24 $dcckeditor_format_select = $core->blog->settings->dcckeditor->format_select; -
plugins/dcCKEditor/locales/fr/main.po
r3055 r3090 50 50 msgstr "Ajouter le bouton pour changer la couleur du texte" 51 51 52 #: tpl/index.tpl:37 53 msgid "Add background text color button" 54 msgstr "Ajouter le bouton pour changer la couleur de fond du texte" 55 52 56 #: tpl/index.tpl:41 53 57 msgid "Add collapse button" -
plugins/dcCKEditor/tpl/index.tpl
r3052 r3090 33 33 <?php echo form::checkbox('dcckeditor_textcolor_button', 1, $dcckeditor_textcolor_button); ?> 34 34 <label class="classic" for="dcckeditor_textcolor_button"> <?php echo __('Add text color button');?></label> 35 </p> 36 <p> 37 <?php echo form::checkbox('dcckeditor_background_textcolor_button', 1, $dcckeditor_background_textcolor_button); ?> 38 <label class="classic" for="dcckeditor_background_textcolor_button"> <?php echo __('Add background text color button');?></label> 35 39 </p> 36 40 <p>
Note: See TracChangeset
for help on using the changeset viewer.