[IMP] web_editor: add oe_movable to move elements in the editor
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) <sge@odoo.com>
This commit is contained in:
@@ -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 = {}) {
|
||||
|
||||
Reference in New Issue
Block a user