[IMP] use ckeditor 4.3 final feature to disable widget draghandle entirely instead of relying on CSS

bzr revid: xmo@openerp.com-20131204162805-rikk5kbbx304tol6
This commit is contained in:
Xavier Morel
2013-12-04 17:28:05 +01:00
parent 5179f6ecc8
commit 04045c3699
2 changed files with 2 additions and 3 deletions
@@ -168,9 +168,6 @@ ul.oe_menu_editor
// Breaks completely horribly crazy products listing page, so take it out.
.cke_widget_wrapper
position: static !important
// "remove" drag & drop of CKE widgets
.cke_widget_drag_handler_container
display: none !important
// prevent inline widgets from entirely disappearing when their (textual)
// content is removed
.cke_widget_editable:empty:after
@@ -323,6 +323,7 @@
init: function (editor) {
editor.widgets.add('oeref', {
editables: { text: '*' },
draggable: false,
upcast: function (el) {
return el.attributes['data-oe-type']
@@ -331,6 +332,7 @@
});
editor.widgets.add('monetary', {
editables: { text: 'span.oe_currency_value' },
draggable: false,
upcast: function (el) {
return el.attributes['data-oe-type'] === 'monetary';