Merge branch 'master' into feature/code-highlighting

This commit is contained in:
Philipp Kühn
2018-09-03 23:28:01 +02:00
8 changed files with 620 additions and 616 deletions

View File

@@ -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"
}
}

View File

@@ -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",

View File

@@ -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', {