@tiptap/core 3.10.2 → 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.js
CHANGED
|
@@ -4395,7 +4395,9 @@ var Editor = class extends EventEmitter {
|
|
|
4395
4395
|
if (this.isDestroyed) {
|
|
4396
4396
|
return;
|
|
4397
4397
|
}
|
|
4398
|
-
this.
|
|
4398
|
+
if (this.options.autofocus !== false && this.options.autofocus !== null) {
|
|
4399
|
+
this.commands.focus(this.options.autofocus);
|
|
4400
|
+
}
|
|
4399
4401
|
this.emit("create", { editor: this });
|
|
4400
4402
|
this.isInitialized = true;
|
|
4401
4403
|
}, 0);
|