@tiptap/vue-2
Advanced tools
Comparing version
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.0.0-beta.45](https://github.com/ueberdosis/tiptap/compare/@tiptap/vue-2@2.0.0-beta.44...@tiptap/vue-2@2.0.0-beta.45) (2021-08-13) | ||
### Bug Fixes | ||
* rename key to pluginKey for menus ([89d26f7](https://github.com/ueberdosis/tiptap/commit/89d26f7cba2a115aa342f0ee621f0b65c840dfb8)) | ||
# [2.0.0-beta.44](https://github.com/ueberdosis/tiptap/compare/@tiptap/vue-2@2.0.0-beta.43...@tiptap/vue-2@2.0.0-beta.44) (2021-08-12) | ||
@@ -8,0 +19,0 @@ |
import Vue, { Component } from 'vue'; | ||
import { BubbleMenuPluginProps } from '@tiptap/extension-bubble-menu'; | ||
export interface BubbleMenuInterface extends Vue { | ||
pluginKey: BubbleMenuPluginProps['key']; | ||
pluginKey: BubbleMenuPluginProps['pluginKey']; | ||
editor: BubbleMenuPluginProps['editor']; | ||
@@ -6,0 +6,0 @@ tippyOptions: BubbleMenuPluginProps['tippyOptions']; |
import Vue, { Component } from 'vue'; | ||
import { FloatingMenuPluginProps } from '@tiptap/extension-floating-menu'; | ||
export interface FloatingMenuInterface extends Vue { | ||
pluginKey: FloatingMenuPluginProps['key']; | ||
pluginKey: FloatingMenuPluginProps['pluginKey']; | ||
tippyOptions: FloatingMenuPluginProps['tippyOptions']; | ||
@@ -6,0 +6,0 @@ editor: FloatingMenuPluginProps['editor']; |
@@ -43,3 +43,3 @@ 'use strict'; | ||
editor.registerPlugin(extensionBubbleMenu.BubbleMenuPlugin({ | ||
key: this.pluginKey, | ||
pluginKey: this.pluginKey, | ||
editor, | ||
@@ -152,3 +152,3 @@ element: this.$el, | ||
editor.registerPlugin(extensionFloatingMenu.FloatingMenuPlugin({ | ||
key: this.pluginKey, | ||
pluginKey: this.pluginKey, | ||
editor, | ||
@@ -155,0 +155,0 @@ element: this.$el, |
@@ -36,3 +36,3 @@ import { Editor as Editor$1, NodeView } from '@tiptap/core'; | ||
editor.registerPlugin(BubbleMenuPlugin({ | ||
key: this.pluginKey, | ||
pluginKey: this.pluginKey, | ||
editor, | ||
@@ -145,3 +145,3 @@ element: this.$el, | ||
editor.registerPlugin(FloatingMenuPlugin({ | ||
key: this.pluginKey, | ||
pluginKey: this.pluginKey, | ||
editor, | ||
@@ -148,0 +148,0 @@ element: this.$el, |
@@ -40,3 +40,3 @@ (function (global, factory) { | ||
editor.registerPlugin(extensionBubbleMenu.BubbleMenuPlugin({ | ||
key: this.pluginKey, | ||
pluginKey: this.pluginKey, | ||
editor, | ||
@@ -149,3 +149,3 @@ element: this.$el, | ||
editor.registerPlugin(extensionFloatingMenu.FloatingMenuPlugin({ | ||
key: this.pluginKey, | ||
pluginKey: this.pluginKey, | ||
editor, | ||
@@ -152,0 +152,0 @@ element: this.$el, |
{ | ||
"name": "@tiptap/vue-2", | ||
"description": "Vue components for tiptap", | ||
"version": "2.0.0-beta.44", | ||
"version": "2.0.0-beta.45", | ||
"homepage": "https://tiptap.dev", | ||
@@ -28,4 +28,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@tiptap/extension-bubble-menu": "^2.0.0-beta.27", | ||
"@tiptap/extension-floating-menu": "^2.0.0-beta.21", | ||
"@tiptap/extension-bubble-menu": "^2.0.0-beta.28", | ||
"@tiptap/extension-floating-menu": "^2.0.0-beta.22", | ||
"prosemirror-view": "^1.18.11" | ||
@@ -38,3 +38,3 @@ }, | ||
}, | ||
"gitHead": "6547ced826f66a540c30c1dcf9b8add1c97a5ff0" | ||
"gitHead": "bcc823405078273b6ff1bf611f4321fe70d61739" | ||
} |
@@ -5,3 +5,3 @@ import Vue, { Component, PropType } from 'vue' | ||
export interface BubbleMenuInterface extends Vue { | ||
pluginKey: BubbleMenuPluginProps['key'], | ||
pluginKey: BubbleMenuPluginProps['pluginKey'], | ||
editor: BubbleMenuPluginProps['editor'], | ||
@@ -17,3 +17,3 @@ tippyOptions: BubbleMenuPluginProps['tippyOptions'], | ||
pluginKey: { | ||
type: [String, Object as PropType<Exclude<BubbleMenuPluginProps['key'], string>>], | ||
type: [String, Object as PropType<Exclude<BubbleMenuPluginProps['pluginKey'], string>>], | ||
default: 'bubbleMenu', | ||
@@ -48,3 +48,3 @@ }, | ||
editor.registerPlugin(BubbleMenuPlugin({ | ||
key: this.pluginKey, | ||
pluginKey: this.pluginKey, | ||
editor, | ||
@@ -51,0 +51,0 @@ element: this.$el as HTMLElement, |
@@ -5,3 +5,3 @@ import Vue, { Component, PropType } from 'vue' | ||
export interface FloatingMenuInterface extends Vue { | ||
pluginKey: FloatingMenuPluginProps['key'], | ||
pluginKey: FloatingMenuPluginProps['pluginKey'], | ||
tippyOptions: FloatingMenuPluginProps['tippyOptions'], | ||
@@ -17,3 +17,3 @@ editor: FloatingMenuPluginProps['editor'], | ||
pluginKey: { | ||
type: [String, Object as PropType<Exclude<FloatingMenuPluginProps['key'], string>>], | ||
type: [String, Object as PropType<Exclude<FloatingMenuPluginProps['pluginKey'], string>>], | ||
default: 'floatingMenu', | ||
@@ -48,3 +48,3 @@ }, | ||
editor.registerPlugin(FloatingMenuPlugin({ | ||
key: this.pluginKey, | ||
pluginKey: this.pluginKey, | ||
editor, | ||
@@ -51,0 +51,0 @@ element: this.$el as HTMLElement, |
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
126746
0.38%