@tiptap/core 2.0.0-beta.136 → 2.0.0-beta.137
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/tiptap-core.cjs.js +0 -7
- package/dist/tiptap-core.cjs.js.map +1 -1
- package/dist/tiptap-core.esm.js +0 -7
- package/dist/tiptap-core.esm.js.map +1 -1
- package/dist/tiptap-core.umd.js +0 -7
- package/dist/tiptap-core.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/Editor.ts +0 -2
- package/dist/packages/core/src/utilities/removeElement.d.ts +0 -1
- package/src/utilities/removeElement.ts +0 -5
package/dist/tiptap-core.cjs.js
CHANGED
|
@@ -1911,12 +1911,6 @@ function isActive(state, name, attributes = {}) {
|
|
|
1911
1911
|
return false;
|
|
1912
1912
|
}
|
|
1913
1913
|
|
|
1914
|
-
function removeElement(element) {
|
|
1915
|
-
if (element === null || element === void 0 ? void 0 : element.parentNode) {
|
|
1916
|
-
element.parentNode.removeChild(element);
|
|
1917
|
-
}
|
|
1918
|
-
}
|
|
1919
|
-
|
|
1920
1914
|
function getHTMLFromFragment(fragment, schema) {
|
|
1921
1915
|
const documentFragment = prosemirrorModel.DOMSerializer
|
|
1922
1916
|
.fromSchema(schema)
|
|
@@ -3337,7 +3331,6 @@ class Editor extends EventEmitter {
|
|
|
3337
3331
|
this.view.destroy();
|
|
3338
3332
|
}
|
|
3339
3333
|
this.removeAllListeners();
|
|
3340
|
-
removeElement(this.css);
|
|
3341
3334
|
}
|
|
3342
3335
|
/**
|
|
3343
3336
|
* Check if the editor is already destroyed.
|