@tiptap/vue-3
Advanced tools
Comparing version 2.0.0-beta.17 to 2.0.0-beta.18
@@ -6,2 +6,10 @@ # Change Log | ||
# [2.0.0-beta.18](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/vue-3@2.0.0-beta.17...@tiptap/vue-3@2.0.0-beta.18) (2021-04-08) | ||
**Note:** Version bump only for package @tiptap/vue-3 | ||
# [2.0.0-beta.17](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/vue-3@2.0.0-beta.16...@tiptap/vue-3@2.0.0-beta.17) (2021-04-06) | ||
@@ -8,0 +16,0 @@ |
@@ -269,6 +269,2 @@ 'use strict'; | ||
const onDragStart = this.onDragStart.bind(this); | ||
const isEditable = vue.ref(this.editor.isEditable); | ||
this.editor.on('viewUpdate', () => { | ||
isEditable.value = this.editor.isEditable; | ||
}); | ||
this.decorationClasses = vue.ref(this.getDecorationClasses()); | ||
@@ -281,3 +277,2 @@ const extendedComponent = vue.defineComponent({ | ||
vue.provide('onDragStart', onDragStart); | ||
vue.provide('isEditable', isEditable); | ||
vue.provide('decorationClasses', this.decorationClasses); | ||
@@ -384,3 +379,2 @@ return (_b = (_a = this.component).setup) === null || _b === void 0 ? void 0 : _b.call(_a, props); | ||
}, | ||
inject: ['isEditable'], | ||
render() { | ||
@@ -392,4 +386,2 @@ return vue.h(this.as, { | ||
'data-node-view-content': '', | ||
// @ts-ignore (https://github.com/vuejs/vue-next/issues/3031) | ||
contenteditable: this.isEditable.value, | ||
}); | ||
@@ -396,0 +388,0 @@ }, |
@@ -266,6 +266,2 @@ import { Editor as Editor$1, NodeView } from '@tiptap/core'; | ||
const onDragStart = this.onDragStart.bind(this); | ||
const isEditable = ref(this.editor.isEditable); | ||
this.editor.on('viewUpdate', () => { | ||
isEditable.value = this.editor.isEditable; | ||
}); | ||
this.decorationClasses = ref(this.getDecorationClasses()); | ||
@@ -278,3 +274,2 @@ const extendedComponent = defineComponent({ | ||
provide('onDragStart', onDragStart); | ||
provide('isEditable', isEditable); | ||
provide('decorationClasses', this.decorationClasses); | ||
@@ -381,3 +376,2 @@ return (_b = (_a = this.component).setup) === null || _b === void 0 ? void 0 : _b.call(_a, props); | ||
}, | ||
inject: ['isEditable'], | ||
render() { | ||
@@ -389,4 +383,2 @@ return h(this.as, { | ||
'data-node-view-content': '', | ||
// @ts-ignore (https://github.com/vuejs/vue-next/issues/3031) | ||
contenteditable: this.isEditable.value, | ||
}); | ||
@@ -393,0 +385,0 @@ }, |
@@ -266,6 +266,2 @@ (function (global, factory) { | ||
const onDragStart = this.onDragStart.bind(this); | ||
const isEditable = vue.ref(this.editor.isEditable); | ||
this.editor.on('viewUpdate', () => { | ||
isEditable.value = this.editor.isEditable; | ||
}); | ||
this.decorationClasses = vue.ref(this.getDecorationClasses()); | ||
@@ -278,3 +274,2 @@ const extendedComponent = vue.defineComponent({ | ||
vue.provide('onDragStart', onDragStart); | ||
vue.provide('isEditable', isEditable); | ||
vue.provide('decorationClasses', this.decorationClasses); | ||
@@ -381,3 +376,2 @@ return (_b = (_a = this.component).setup) === null || _b === void 0 ? void 0 : _b.call(_a, props); | ||
}, | ||
inject: ['isEditable'], | ||
render() { | ||
@@ -389,4 +383,2 @@ return vue.h(this.as, { | ||
'data-node-view-content': '', | ||
// @ts-ignore (https://github.com/vuejs/vue-next/issues/3031) | ||
contenteditable: this.isEditable.value, | ||
}); | ||
@@ -393,0 +385,0 @@ }, |
{ | ||
"name": "@tiptap/vue-3", | ||
"description": "Vue components for tiptap", | ||
"version": "2.0.0-beta.17", | ||
"version": "2.0.0-beta.18", | ||
"homepage": "https://tiptap.dev", | ||
@@ -34,3 +34,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "c83cd59df156c84db4fd687dfad83231ed9220ef" | ||
"gitHead": "113d50b814c8860465c8bb16ae2bee3097689016" | ||
} |
@@ -11,4 +11,2 @@ import { h, defineComponent } from 'vue' | ||
inject: ['isEditable'], | ||
render() { | ||
@@ -21,4 +19,2 @@ return h( | ||
'data-node-view-content': '', | ||
// @ts-ignore (https://github.com/vuejs/vue-next/issues/3031) | ||
contenteditable: this.isEditable.value, | ||
}, | ||
@@ -25,0 +21,0 @@ ) |
@@ -74,8 +74,3 @@ import { | ||
const onDragStart = this.onDragStart.bind(this) | ||
const isEditable = ref(this.editor.isEditable) | ||
this.editor.on('viewUpdate', () => { | ||
isEditable.value = this.editor.isEditable | ||
}) | ||
this.decorationClasses = ref(this.getDecorationClasses()) | ||
@@ -88,3 +83,2 @@ | ||
provide('onDragStart', onDragStart) | ||
provide('isEditable', isEditable) | ||
provide('decorationClasses', this.decorationClasses) | ||
@@ -91,0 +85,0 @@ |
Sorry, the diff of this file is too big to display
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
614765
2173