This commit is contained in:
Yunseon Hong 2024-03-29 15:19:18 +09:00
parent b355f1673c
commit 47029eece9
No known key found for this signature in database
GPG key ID: 27C6B45EC54CD1D2

View file

@ -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 {
/**