@tiptap/vue-2 3.5.3 → 3.6.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiptap/vue-2",
3
3
  "description": "Vue components for tiptap",
4
- "version": "3.5.3",
4
+ "version": "3.6.1",
5
5
  "homepage": "https://tiptap.dev",
6
6
  "keywords": [
7
7
  "tiptap",
@@ -43,17 +43,17 @@
43
43
  },
44
44
  "devDependencies": {
45
45
  "vue": "^2.7.16",
46
- "@tiptap/core": "^3.5.3",
47
- "@tiptap/pm": "^3.5.3"
46
+ "@tiptap/pm": "^3.6.1",
47
+ "@tiptap/core": "^3.6.1"
48
48
  },
49
49
  "optionalDependencies": {
50
- "@tiptap/extension-bubble-menu": "^3.5.3",
51
- "@tiptap/extension-floating-menu": "^3.5.3"
50
+ "@tiptap/extension-bubble-menu": "^3.6.1",
51
+ "@tiptap/extension-floating-menu": "^3.6.1"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "vue": "^2.6.0",
55
- "@tiptap/core": "^3.5.3",
56
- "@tiptap/pm": "^3.5.3"
55
+ "@tiptap/core": "^3.6.1",
56
+ "@tiptap/pm": "^3.6.1"
57
57
  },
58
58
  "repository": {
59
59
  "type": "git",
@@ -25,11 +25,11 @@ export const EditorContent: Component = {
25
25
  this.$nextTick(() => {
26
26
  const element = this.$el
27
27
 
28
- if (!element || !editor.options.element?.firstChild) {
28
+ if (!element || !editor.view.dom?.firstChild) {
29
29
  return
30
30
  }
31
31
 
32
- element.append(...editor.options.element.childNodes)
32
+ element.append(editor.view.dom)
33
33
  editor.contentComponent = this
34
34
 
35
35
  editor.setOptions({
@@ -62,14 +62,14 @@ export const EditorContent: Component = {
62
62
 
63
63
  editor.contentComponent = null
64
64
 
65
- if (!editor.options.element?.firstChild) {
65
+ if (!editor.view.dom?.firstChild) {
66
66
  return
67
67
  }
68
68
 
69
69
  // TODO using the new editor.mount method might allow us to remove this
70
70
  const newElement = document.createElement('div')
71
71
 
72
- newElement.append(...editor.options.element.childNodes)
72
+ newElement.append(editor.view.dom)
73
73
 
74
74
  editor.setOptions({
75
75
  element: newElement,