Dotclear

Changeset 3955:dcbe188a9646 for plugins


Ignore:
Timestamp:
01/20/19 10:26:55 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add undo/redo option (toolbar buttons) for CKEditor plugin

Location:
plugins/dcCKEditor
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • plugins/dcCKEditor/_install.php

    r3731 r3955  
    3030$settings->dcckeditor->put('table_button', false, 'boolean', 'Add table button?', false, true); 
    3131$settings->dcckeditor->put('clipboard_buttons', false, 'boolean', 'Add clipboard buttons?', false, true); 
     32$settings->dcckeditor->put('action_buttons', true, 'boolean', 'Add undo/redo buttons?', false, true); 
    3233$settings->dcckeditor->put('disable_native_spellchecker', true, 'boolean', 'Disables the built-in spell checker if the browser provides one?', false, true); 
    3334 
  • plugins/dcCKEditor/_post_config.php

    r3917 r3955  
    191191<?php endif;?> 
    192192 
     193<?php if (!empty($dcckeditor_action_buttons)): ?> 
     194            { 
     195                name: 'action', 
     196                items: ['Undo','Redo'] 
     197            }, 
     198<?php endif;?> 
     199 
    193200<?php if (!empty($dcckeditor_alignment_buttons)): ?> 
    194201            { 
  • plugins/dcCKEditor/inc/_config.php

    r3875 r3955  
    6464            $core->blog->settings->dcckeditor->put('clipboard_buttons', $dcckeditor_clipboard_buttons, 'boolean'); 
    6565 
     66            $dcckeditor_action_buttons = (empty($_POST['dcckeditor_action_buttons'])) ? false : true; 
     67            $core->blog->settings->dcckeditor->put('action_buttons', $dcckeditor_action_buttons, 'boolean'); 
     68 
    6669            $dcckeditor_disable_native_spellchecker = (empty($_POST['dcckeditor_disable_native_spellchecker'])) ? false : true; 
    6770            $core->blog->settings->dcckeditor->put('disable_native_spellchecker', $dcckeditor_disable_native_spellchecker, 'boolean'); 
  • plugins/dcCKEditor/index.php

    r3731 r3955  
    2525$dcckeditor_table_button                = $core->blog->settings->dcckeditor->table_button; 
    2626$dcckeditor_clipboard_buttons           = $core->blog->settings->dcckeditor->clipboard_buttons; 
     27$dcckeditor_action_buttons              = $core->blog->settings->dcckeditor->action_buttons; 
    2728$dcckeditor_disable_native_spellchecker = $core->blog->settings->dcckeditor->disable_native_spellchecker; 
    2829 
  • plugins/dcCKEditor/locales/fr/main.po

    r3090 r3955  
    6060#: tpl/index.tpl:45 
    6161msgid "Add format selection" 
    62 msgstr "Ajouter le bouton pour ajouter les formats." 
     62msgstr "Ajouter le bouton pour ajouter les formats" 
    6363 
    6464msgid "Add table button" 
    65 msgstr "Ajouter le bouton pour ajouter des tableaux." 
     65msgstr "Ajouter le bouton pour ajouter des tableaux" 
    6666 
    6767msgid "Add clipboard buttons" 
    68 msgstr "Ajouter les boutons de copier/coller..." 
     68msgstr "Ajouter les boutons de copier/coller" 
    6969 
    7070msgid "Copy, Paste, Paste Text, Paste from Word" 
     
    8888msgid "Disables the built-in spell checker if the browser provides one" 
    8989msgstr "Désactiver la correction orthographique fournie par le navigateur" 
     90 
     91msgid "Add undo/redo buttons" 
     92msgstr "Ajouter les boutons défaire/refaire" 
  • plugins/dcCKEditor/tpl/index.php

    r3875 r3955  
    9090        </p> 
    9191        <p> 
     92          <?php echo form::checkbox('dcckeditor_action_buttons', 1, $dcckeditor_action_buttons); ?> 
     93          <label class="classic" for="dcckeditor_action_buttons"> 
     94            <?php echo __('Add undo/redo buttons'); ?> 
     95          </label> 
     96        </p> 
     97        <p> 
    9298          <?php echo form::checkbox('dcckeditor_disable_native_spellchecker', 1, $dcckeditor_disable_native_spellchecker); ?> 
    9399          <label class="classic" for="dcckeditor_disable_native_spellchecker"> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map