diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js index 82888c5d8a3..6d151dc1008 100644 --- a/addons/website/static/src/js/website.editor.js +++ b/addons/website/static/src/js/website.editor.js @@ -1924,9 +1924,10 @@ return false; } switch(m.type) { - case 'attributes': // ignore .cke_focus being added or removed - // ignore id modification - if (m.attributeName === 'id') { return false; } + case 'attributes': + // ignore special attributes and .cke_focus class being added or removed + var ignored_attrs = ['id', 'contenteditable', 'attributeeditable'] + if (_.contains(ignored_attrs, m.attributeName)) { return false; } // if attribute is not a class, can't be .cke_focus change if (m.attributeName !== 'class') { return true; }