@tiptap/vue-3
Advanced tools
Comparing version 2.8.0 to 2.9.0
@@ -157,18 +157,4 @@ import { BubbleMenuPlugin } from '@tiptap/extension-bubble-menu'; | ||
} | ||
// destroy nodeviews before vue removes dom element | ||
if (!editor.isDestroyed) { | ||
editor.view.setProps({ | ||
nodeViews: {}, | ||
}); | ||
} | ||
editor.contentComponent = null; | ||
editor.appContext = null; | ||
if (!editor.options.element.firstChild) { | ||
return; | ||
} | ||
const newElement = document.createElement('div'); | ||
newElement.append(...editor.options.element.childNodes); | ||
editor.setOptions({ | ||
element: newElement, | ||
}); | ||
}); | ||
@@ -175,0 +161,0 @@ return { rootEl }; |
@@ -157,18 +157,4 @@ (function (global, factory) { | ||
} | ||
// destroy nodeviews before vue removes dom element | ||
if (!editor.isDestroyed) { | ||
editor.view.setProps({ | ||
nodeViews: {}, | ||
}); | ||
} | ||
editor.contentComponent = null; | ||
editor.appContext = null; | ||
if (!editor.options.element.firstChild) { | ||
return; | ||
} | ||
const newElement = document.createElement('div'); | ||
newElement.append(...editor.options.element.childNodes); | ||
editor.setOptions({ | ||
element: newElement, | ||
}); | ||
}); | ||
@@ -175,0 +161,0 @@ return { rootEl }; |
{ | ||
"name": "@tiptap/vue-3", | ||
"description": "Vue components for tiptap", | ||
"version": "2.8.0", | ||
"version": "2.9.0", | ||
"homepage": "https://tiptap.dev", | ||
@@ -32,8 +32,8 @@ "keywords": [ | ||
"dependencies": { | ||
"@tiptap/extension-bubble-menu": "^2.8.0", | ||
"@tiptap/extension-floating-menu": "^2.8.0" | ||
"@tiptap/extension-bubble-menu": "^2.9.0", | ||
"@tiptap/extension-floating-menu": "^2.9.0" | ||
}, | ||
"devDependencies": { | ||
"@tiptap/core": "^2.8.0", | ||
"@tiptap/pm": "^2.8.0", | ||
"@tiptap/core": "^2.9.0", | ||
"@tiptap/pm": "^2.9.0", | ||
"vue": "^3.0.0" | ||
@@ -40,0 +40,0 @@ }, |
@@ -62,2 +62,3 @@ import { | ||
}) | ||
} | ||
@@ -73,23 +74,4 @@ }) | ||
// destroy nodeviews before vue removes dom element | ||
if (!editor.isDestroyed) { | ||
editor.view.setProps({ | ||
nodeViews: {}, | ||
}) | ||
} | ||
editor.contentComponent = null | ||
editor.appContext = null | ||
if (!editor.options.element.firstChild) { | ||
return | ||
} | ||
const newElement = document.createElement('div') | ||
newElement.append(...editor.options.element.childNodes) | ||
editor.setOptions({ | ||
element: newElement, | ||
}) | ||
}) | ||
@@ -96,0 +78,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
195294
2539