Merge branch 'master' into feature/code-highlighting
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "tiptap-extensions",
|
||||
"version": "0.6.1",
|
||||
"version": "0.7.0",
|
||||
"description": "Extensions for tiptap",
|
||||
"homepage": "https://tiptap.scrumpy.io",
|
||||
"license": "MIT",
|
||||
@@ -22,7 +22,7 @@
|
||||
"dependencies": {
|
||||
"lowlight": "^1.10.0",
|
||||
"prosemirror-history": "^1.0.2",
|
||||
"tiptap": "^0.8.0",
|
||||
"tiptap": "^0.9.0",
|
||||
"tiptap-commands": "^0.2.4"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "tiptap",
|
||||
"version": "0.8.0",
|
||||
"version": "0.9.0",
|
||||
"description": "A rich-text editor for Vue.js",
|
||||
"homepage": "https://tiptap.scrumpy.io",
|
||||
"license": "MIT",
|
||||
|
||||
@@ -100,6 +100,10 @@ export default {
|
||||
this.view = this.createView()
|
||||
this.commands = this.createCommands()
|
||||
this.updateMenuActions()
|
||||
this.$emit('init', {
|
||||
view: this.view,
|
||||
state: this.state,
|
||||
})
|
||||
},
|
||||
|
||||
createSchema() {
|
||||
@@ -200,6 +204,10 @@ export default {
|
||||
},
|
||||
|
||||
dispatchTransaction(transaction) {
|
||||
if (!transaction.docChanged) {
|
||||
return
|
||||
}
|
||||
|
||||
this.state = this.state.apply(transaction)
|
||||
this.view.updateState(this.state)
|
||||
this.$emit('update', {
|
||||
|
||||
Reference in New Issue
Block a user