[FIX] disable ckeditor's magicline plugin (not very useful and breaks droppables)

bzr revid: xmo@openerp.com-20130731150733-mna9qoygkn6qiers
This commit is contained in:
Xavier Morel
2013-07-31 17:07:33 +02:00
parent 7c2d3a871f
commit f25335df31
+10 -3
View File
@@ -117,7 +117,7 @@ instance.website.EditorBar = instance.web.Widget.extend({
var self = this;
$('.oe_snippet_drop').remove();
var droppable = '<div class="oe_snippet_drop"></div>';
var $zone = $('*:not(.oe_snippet) > .container');
var $zone = $(':not(.oe_snippet) > .container');
$zone.before(droppable).after(droppable);
$(".oe_snippet_drop").droppable({
@@ -339,11 +339,18 @@ instance.website.RTE = instance.web.Widget.extend({
this.toggle(!!CKEDITOR.currentInstance);
},
_config: function () {
var removed_plugins = [
// remove toolbar entirely
'toolbar,elementspath,resize',
// remove custom context menu
'contextmenu,tabletools,liststyle',
// magicline captures mousein/mouseout => draggable does not work
'magicline'
];
return {
// Don't load ckeditor's style rules
stylesSet: [],
// Remove toolbar entirely, also custom context menu
removePlugins: 'toolbar,elementspath,resize,contextmenu,tabletools,liststyle',
removePlugins: removed_plugins.join(','),
uiColor: '',
// Ensure no config file is loaded
customConfig: '',