common c-e container

This commit is contained in:
Peter Savchenko 2023-12-05 18:52:38 +03:00
parent 531ab06f63
commit 42eb644cde
No known key found for this signature in database
GPG key ID: E68306B1AB0F727C
2 changed files with 3 additions and 0 deletions

View file

@ -748,6 +748,8 @@ export default class Block extends EventsDispatcher<BlockEvents> {
contentNode = $.make('div', Block.CSS.content),
pluginsContent = this.toolInstance.render();
wrapper.contentEditable = 'false';
/**
* Export id to the DOM three
* Useful for standalone modules development. For example, allows to identify Block by some child node. Or scroll to a particular Block by id.

View file

@ -258,6 +258,7 @@ export default class UI extends Module<UINodes> {
...(this.isRtl ? [ this.CSS.editorRtlFix ] : []),
]);
this.nodes.redactor = $.make('div', this.CSS.editorZone);
this.nodes.redactor.contentEditable = 'true';
/**
* If Editor has injected into the narrow container, enable Narrow Mode