Skip to content

Commit

Permalink
fix issue #2613
Browse files Browse the repository at this point in the history
  • Loading branch information
egg- committed Mar 29, 2024
1 parent b355f16 commit 47029ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/modules/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**
Expand Down

0 comments on commit 47029ee

Please sign in to comment.