Dotclear

Changeset 3362:1796e55732bd


Ignore:
Timestamp:
10/16/16 11:57:17 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add 'l' and 'm' accesskey for CKEditor toolbar, respectively for 'insert link' and 'select media' buttons

Location:
plugins/dcCKEditor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/dcCKEditor/_post_config.php

    r3090 r3362  
    121121          extraPlugins: '<?php echo $defautExtraPlugins;?>', 
    122122 
     123          keystrokes: [ 
     124               [ CKEDITOR.CTRL + (CKEDITOR.env.mac ? CKEDITOR.ALT : CKEDITOR.SHIFT) + 
     125                    dotclear.msg.link_accesskey.toUpperCase().charCodeAt(0), 'dcLinkCommand' ],    // Ctrl+Alt+l 
     126               [ CKEDITOR.CTRL + (CKEDITOR.env.mac ? CKEDITOR.ALT : CKEDITOR.SHIFT) + 
     127                    dotclear.msg.img_select_accesskey.toUpperCase().charCodeAt(0), 'mediaCommand' ],    // Ctrl+Alt+m 
     128          ], 
     129 
    123130          <?php if (!empty($dcckeditor_format_select)):?> 
    124131          // format tags 
  • plugins/dcCKEditor/inc/dc.ckeditor.behaviors.php

    r3024 r3362  
    4949             };'. 
    5050            "dotclear.msg.img_select_title = '".html::escapeJS(__('Media chooser'))."'; ". 
     51            "dotclear.msg.img_select_accesskey = '".html::escapeJS(__('m'))."'; ". 
    5152            "dotclear.msg.post_link_title = '".html::escapeJS(__('Link to an entry'))."'; ". 
    5253            "dotclear.msg.link_title = '".html::escapeJS(__('Link'))."'; ". 
     54            "dotclear.msg.link_accesskey = '".html::escapeJS(__('l'))."'; ". 
    5355            "dotclear.msg.img_title = '".html::escapeJS(__('External image'))."'; ". 
    5456            "dotclear.msg.url_cannot_be_empty = '".html::escapeJS(__('URL field cannot be empty.'))."';". 
Note: See TracChangeset for help on using the changeset viewer.

Sites map