[IMP] context-sensitivity of toolbar commands (kinda, attempted)
bzr revid: xmo@openerp.com-20140313093707-gpaz7gmsd5zt2ck5
This commit is contained in:
parent
0308b7968c
commit
cd0434fb2a
|
@ -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 },
|
||||
|
|
Loading…
Reference in New Issue