[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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user