Changeset 3361:23cff72066bd
- Timestamp:
- 10/16/16 10:33:55 (9 years ago)
- Branch:
- default
- Location:
- plugins/dcLegacyEditor
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/dcLegacyEditor/inc/dc.legacy.editor.behaviors.php
r3258 r3361 120 120 121 121 "jsToolBar.prototype.elements.link.title = '".html::escapeJS(__('Link'))."'; ". 122 "jsToolBar.prototype.elements.link.accesskey = '".html::escapeJS(__('l'))."'; ". 122 123 "jsToolBar.prototype.elements.link.href_prompt = '".html::escapeJS(__('URL?'))."'; ". 123 124 "jsToolBar.prototype.elements.link.hreflang_prompt = '".html::escapeJS(__('Language?'))."'; ". … … 127 128 128 129 "jsToolBar.prototype.elements.img_select.title = '".html::escapeJS(__('Media chooser'))."'; ". 130 "jsToolBar.prototype.elements.img_select.accesskey = '".html::escapeJS(__('m'))."'; ". 129 131 "jsToolBar.prototype.elements.post_link.title = '".html::escapeJS(__('Link to an entry'))."'; ". 130 132 "jsToolBar.prototype.elements.removeFormat = jsToolBar.prototype.elements.removeFormat || {}; ". -
plugins/dcLegacyEditor/js/jsToolBar/jsToolBar.dotclear.js
r2834 r3361 153 153 type: 'button', 154 154 title: 'Image chooser', 155 accesskey: 'm', 155 156 fn: {}, 156 157 fncall: {}, -
plugins/dcLegacyEditor/js/jsToolBar/jsToolBar.js
r3258 r3361 67 67 }; 68 68 69 function jsButton(title, fn, scope, className ) {69 function jsButton(title, fn, scope, className, accesskey) { 70 70 this.title = title || null; 71 71 this.fn = fn || function(){}; 72 72 this.scope = scope || null; 73 73 this.className = className || null; 74 this.accesskey = accesskey || null; 74 75 }; 75 76 jsButton.prototype.draw = function() { … … 80 81 if (this.className) button.className = this.className; 81 82 button.title = this.title; 83 if (this.accesskey) button.accessKey = this.accesskey; 82 84 var span = document.createElement('span'); 83 85 span.appendChild(document.createTextNode(this.title)); … … 165 167 var tool = this.elements[toolName]; 166 168 if (typeof tool.fn[this.mode] != 'function') return null; 167 var b = new jsButton(tool.title, tool.fn[this.mode], this, 'jstb_'+toolName );169 var b = new jsButton(tool.title, tool.fn[this.mode], this, 'jstb_'+toolName, tool.accesskey); 168 170 if (tool.icon != undefined) { 169 171 b.icon = tool.icon; … … 552 554 title: 'Link', 553 555 fn: {}, 556 accesskey: 'l', 554 557 href_prompt: 'Please give page URL:', 555 558 hreflang_prompt: 'Language of this page:',
Note: See TracChangeset
for help on using the changeset viewer.