@tiptap/core 3.10.3 → 3.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/Editor.ts +3 -1
package/dist/index.cjs
CHANGED
|
@@ -4523,7 +4523,9 @@ var Editor = class extends EventEmitter {
|
|
|
4523
4523
|
if (this.isDestroyed) {
|
|
4524
4524
|
return;
|
|
4525
4525
|
}
|
|
4526
|
-
this.
|
|
4526
|
+
if (this.options.autofocus !== false && this.options.autofocus !== null) {
|
|
4527
|
+
this.commands.focus(this.options.autofocus);
|
|
4528
|
+
}
|
|
4527
4529
|
this.emit("create", { editor: this });
|
|
4528
4530
|
this.isInitialized = true;
|
|
4529
4531
|
}, 0);
|