diff options
| author | Xavier Morel <xmo@openerp.com> | 2014-03-13 10:37:07 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2014-03-13 10:37:07 +0100 |
| commit | cd0434fb2a7cb0d8828485117b89255788c00aea (patch) | |
| tree | cffe950f85f0bb830bf60fe48f46578d2d35d8f4 /addons/website/static/src/js/website.editor.js | |
| parent | 0308b7968c85798c382553925ea92e683c7ad86d (diff) | |
[IMP] context-sensitivity of toolbar commands (kinda, attempted)
bzr revid: xmo@openerp.com-20140313093707-gpaz7gmsd5zt2ck5
Diffstat (limited to 'addons/website/static/src/js/website.editor.js')
| -rw-r--r-- | addons/website/static/src/js/website.editor.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js index 06dd48fa68c..9e855e28569 100644 --- a/addons/website/static/src/js/website.editor.js +++ b/addons/website/static/src/js/website.editor.js @@ -106,6 +106,7 @@ }, canUndo: false, editorFocus: true, + context: 'a', }); //noinspection JSValidateTypes editor.addCommand('image', { @@ -115,6 +116,7 @@ }, canUndo: false, editorFocus: true, + context: 'img', }); editor.ui.addButton('Link', { @@ -205,6 +207,7 @@ icon: '/website/static/src/img/bglink.png', modes: { wysiwyg: true }, editorFocus: true, + context: 'a', panel: { css: '/website/static/lib/bootstrap/css/bootstrap.css', attributes: { 'role': 'listbox', 'aria-label': label }, |
