Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fix block splitting bug #233
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed Jul 6, 2020
1 parent 8087b34 commit 52168d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/ProseMirror/ProseMirror.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ export default {
disabled: this.disabled,
element: this.$el,
marks: this.marks,
onUpdate: this.onUpdate,
onSplit: this.onSplit,
onBack: this.onBack,
onForward: this.onForward,
onBold: this.onBold,
Expand All @@ -110,9 +108,11 @@ export default {
onSelect: this.onSelect,
onShiftEnter: this.onShiftEnter,
onShiftTab: this.$listeners["shiftTab"] ? this.onShiftTab : false,
onSplit: this.onSplitBlock,
onStrikeThrough: this.onStrikeThrough,
onTab: this.$listeners["tab"] ? this.onTab : false,
onUnderline: this.onUnderline,
onUpdate: this.onUpdate,
});
this.onUpdate();
Expand Down Expand Up @@ -434,7 +434,7 @@ export default {
onStrikeThrough() {
this.toggleMark("strikeThrough");
},
onSplit() {
onSplitBlock() {
this.$emit("split", {
cursor: this.cursorPosition(),
before: this.htmlBeforeCursor(),
Expand Down

0 comments on commit 52168d5

Please sign in to comment.