From 06bfcfff9a69781078a412159c989f04bd0e25e6 Mon Sep 17 00:00:00 2001 From: Nicolas Bayet Date: Mon, 6 Nov 2023 16:33:08 +0100 Subject: [PATCH] [IMP] web_editor: add oe_movable to move elements in the editor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In order to let third party code set a node to be movable, this commit adds a class to set a node to be movable in the OdooEditor. closes odoo/odoo#141384 Signed-off-by: Geelen Sébastien (sge) --- addons/web_editor/static/src/js/wysiwyg/MoveNodePlugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/js/wysiwyg/MoveNodePlugin.js b/addons/web_editor/static/src/js/wysiwyg/MoveNodePlugin.js index 12fde5fa913..6d773b194c9 100644 --- a/addons/web_editor/static/src/js/wysiwyg/MoveNodePlugin.js +++ b/addons/web_editor/static/src/js/wysiwyg/MoveNodePlugin.js @@ -38,7 +38,7 @@ const simpleDraggableHook = { const WIDGET_CONTAINER_WIDTH = 25; const WIDGET_MOVE_SIZE = 20; -const ALLOWED_ELEMENTS = 'h1, h2, h3, p, hr, pre, blockquote, ul, ol, table, .o_knowledge_behavior_anchor, .o_text_columns, .o_editor_banner'; +const ALLOWED_ELEMENTS = 'h1, h2, h3, p, hr, pre, blockquote, ul, ol, table, .o_knowledge_behavior_anchor, .o_text_columns, .o_editor_banner, .oe_movable'; export class MoveNodePlugin { constructor(options = {}) {