[IMP] context-sensitivity of toolbar commands (kinda, attempted)

bzr revid: xmo@openerp.com-20140313093707-gpaz7gmsd5zt2ck5
This commit is contained in:
Xavier Morel 2014-03-13 10:37:07 +01:00
parent 0308b7968c
commit cd0434fb2a
1 changed files with 3 additions and 0 deletions

View File

@ -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 },