@jinntec/jinntap 1.27.0 → 1.27.1
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/jinn-tap.es.js +3 -3
- package/package.json +1 -1
package/dist/jinn-tap.es.js
CHANGED
|
@@ -51516,7 +51516,7 @@ class Cz extends HTMLElement {
|
|
|
51516
51516
|
})
|
|
51517
51517
|
));
|
|
51518
51518
|
}
|
|
51519
|
-
this.setupEditor()
|
|
51519
|
+
this.setupEditor();
|
|
51520
51520
|
}
|
|
51521
51521
|
async setupEditor() {
|
|
51522
51522
|
this._schema ? await this.loadSchema(this._schema) : this._schema = ak;
|
|
@@ -51598,7 +51598,7 @@ class Cz extends HTMLElement {
|
|
|
51598
51598
|
],
|
|
51599
51599
|
autofocus: !1,
|
|
51600
51600
|
onCreate: () => {
|
|
51601
|
-
this.dispatchEvent(new CustomEvent("ready"));
|
|
51601
|
+
this._initialized = !0, this.dispatchEvent(new CustomEvent("ready"));
|
|
51602
51602
|
},
|
|
51603
51603
|
onTransaction: ({ editor: g, transaction: y }) => {
|
|
51604
51604
|
y.docChanged && this.dispatchContentChange();
|
|
@@ -51635,7 +51635,7 @@ class Cz extends HTMLElement {
|
|
|
51635
51635
|
)) : (f.extensions.push(Z5), f.content = l), this.tableMenu = new Az(this), this.editor = new I5(f), this.attributePanel = new i_(this, this._schema), this.navigationPanel = new o_(this, this.attributePanel), this.toolbar = new s_(this, this._schema), this.collaboration || (this.content = l);
|
|
51636
51636
|
}
|
|
51637
51637
|
dispatchContentChange() {
|
|
51638
|
-
if (!this.
|
|
51638
|
+
if (!this._initialized && this.collaboration)
|
|
51639
51639
|
return;
|
|
51640
51640
|
const e = bx(this.editor, this._schema);
|
|
51641
51641
|
this.dispatchEvent(
|