Skip to content

Commit 43ac1a0

Browse files
committed
fix issue #2613
1 parent b355f16 commit 43ac1a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/modules/renderer.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ export default class Renderer extends Module {
1616
*/
1717
public async render(blocksData: OutputBlockData[]): Promise<void> {
1818
return new Promise((resolve) => {
19-
const { Tools, BlockManager } = this.Editor;
19+
const { Tools, BlockManager, ReadOnly } = this.Editor;
2020

21-
if (blocksData.length === 0) {
21+
if (blocksData.length === 0 && ReadOnly.isEnabled === false) {
2222
BlockManager.insert();
2323
} else {
2424
/**

0 commit comments

Comments
 (0)