[IMP] just in case, forbid the edition of images as root of view sections
bzr revid: xmo@openerp.com-20130919152318-jq6ef1jhfs05b0ys
This commit is contained in:
@@ -37,7 +37,10 @@
|
||||
init: function (editor) {
|
||||
editor.on('doubleclick', function (evt) {
|
||||
var element = evt.data.element;
|
||||
if (element.is('img') && !element.data( 'cke-realelement' ) && !element.isReadOnly()) {
|
||||
if (element.is('img')
|
||||
&& !element.data('cke-realelement')
|
||||
&& !element.isReadOnly()
|
||||
&& (element.data('oe-model') !== 'ir.ui.view')) {
|
||||
image_dialog(editor);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user