diff --git a/src/components/core.ts b/src/components/core.ts index a7e307c32..a49e19bcb 100644 --- a/src/components/core.ts +++ b/src/components/core.ts @@ -61,9 +61,11 @@ export default class Core { UI.checkEmptiness(); ModificationsObserver.enable(); - if ((this.configuration as EditorConfig).autofocus === true && this.configuration.readOnly !== true) { - Caret.setToBlock(BlockManager.blocks[0], Caret.positions.START); - } + try { + if ((this.configuration as EditorConfig).autofocus === true && this.configuration.readOnly !== true) { + Caret.setToBlock(BlockManager.blocks[0], Caret.positions.START); + } + } catch {} onReady(); }) diff --git a/src/tools/paragraph b/src/tools/paragraph new file mode 160000 index 000000000..6e45413cc --- /dev/null +++ b/src/tools/paragraph @@ -0,0 +1 @@ +Subproject commit 6e45413ccdfd021f1800eb6e5bf7440184d5ab7c