mirror of
https://github.com/codex-team/editor.js
synced 2024-06-10 18:03:25 +02:00
fix issue #2613
This commit is contained in:
parent
b355f1673c
commit
47029eece9
|
@ -16,9 +16,9 @@ export default class Renderer extends Module {
|
|||
*/
|
||||
public async render(blocksData: OutputBlockData[]): Promise<void> {
|
||||
return new Promise((resolve) => {
|
||||
const { Tools, BlockManager } = this.Editor;
|
||||
const { Tools, BlockManager, ReadOnly } = this.Editor;
|
||||
|
||||
if (blocksData.length === 0) {
|
||||
if (blocksData.length === 0 && ReadOnly.isEnabled === false) {
|
||||
BlockManager.insert();
|
||||
} else {
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue