diff --git a/src/components/modules/renderer.ts b/src/components/modules/renderer.ts index 940ff179b..6900ae8f0 100644 --- a/src/components/modules/renderer.ts +++ b/src/components/modules/renderer.ts @@ -16,9 +16,9 @@ export default class Renderer extends Module { */ public async render(blocksData: OutputBlockData[]): Promise { 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 { /**