We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b355f16 commit 43ac1a0Copy full SHA for 43ac1a0
src/components/modules/renderer.ts
@@ -16,9 +16,9 @@ export default class Renderer extends Module {
16
*/
17
public async render(blocksData: OutputBlockData[]): Promise<void> {
18
return new Promise((resolve) => {
19
- const { Tools, BlockManager } = this.Editor;
+ const { Tools, BlockManager, ReadOnly } = this.Editor;
20
21
- if (blocksData.length === 0) {
+ if (blocksData.length === 0 && ReadOnly.isEnabled === false) {
22
BlockManager.insert();
23
} else {
24
/**
0 commit comments