mirror of
https://github.com/codex-team/editor.js
synced 2024-06-09 09:22:16 +02:00
common c-e container
This commit is contained in:
parent
531ab06f63
commit
42eb644cde
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue