@jinntec/jinntap 1.13.2 → 1.13.3

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.
@@ -38852,7 +38852,7 @@ class Ux extends HTMLElement {
38852
38852
  url: o,
38853
38853
  document: this.doc,
38854
38854
  onSynced: () => {
38855
- !this.doc.getMap("config").get("initialContentLoaded") && this.editor && (this.doc.getMap("config").set("initialContentLoaded", !0), this.editor.chain().focus().setContent(t).run());
38855
+ !this.doc.getMap("config").get("initialContentLoaded") && this.editor && (this.doc.getMap("config").set("initialContentLoaded", !0), this.editor.chain().setContent(t).setTextSelection(0).focus().run());
38856
38856
  }
38857
38857
  // onAwarenessChange: ({ states }) => {
38858
38858
  // console.log('onAwarenessChange: %o', states);
@@ -38873,7 +38873,7 @@ class Ux extends HTMLElement {
38873
38873
  includeChildren: !0
38874
38874
  })
38875
38875
  ],
38876
- autofocus: "start",
38876
+ autofocus: !1,
38877
38877
  onCreate: () => {
38878
38878
  this.dispatchContentChange(), this.dispatchEvent(new CustomEvent("ready"));
38879
38879
  },
@@ -38888,7 +38888,7 @@ class Ux extends HTMLElement {
38888
38888
  name: this.collabUser,
38889
38889
  color: _x()
38890
38890
  }
38891
- }))) : (s.extensions.push(qb), s.content = t), this.editor = new Nb(s), this.attributePanel = new Nx(this, this._schema), this.navigationPanel = new Ix(this, this.attributePanel), this.toolbar = new zx(this, this._schema);
38891
+ }))) : s.extensions.push(qb), this.editor = new Nb(s), this.attributePanel = new Nx(this, this._schema), this.navigationPanel = new Ix(this, this.attributePanel), this.toolbar = new zx(this, this._schema), this.collabEnabled || (this.content = t);
38892
38892
  }
38893
38893
  dispatchContentChange() {
38894
38894
  this.dispatchEvent(new CustomEvent("content-change", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jinntec/jinntap",
3
- "version": "1.13.2",
3
+ "version": "1.13.3",
4
4
  "type": "module",
5
5
  "main": "./dist/index.es.js",
6
6
  "module": "./dist/index.es.js",