prosemirror-schema-list
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -0,1 +1,7 @@ | ||
## 1.0.4 (2019-10-08) | ||
### Bug fixes | ||
Fix regression where `splitListItem` doesn't work at the end of an item when the content for list items has different first and non-first allowed nodes. | ||
## 1.0.3 (2019-04-19) | ||
@@ -2,0 +8,0 @@ |
@@ -154,3 +154,3 @@ 'use strict'; | ||
} | ||
var nextType = $to.pos == $from.end() ? grandParent.contentMatchAt($from.indexAfter(-1)).defaultType : null; | ||
var nextType = $to.pos == $from.end() ? grandParent.contentMatchAt(0).defaultType : null; | ||
var tr = state.tr.delete($from.pos, $to.pos); | ||
@@ -157,0 +157,0 @@ var types = nextType && [null, {type: nextType}]; |
{ | ||
"name": "prosemirror-schema-list", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "List-related schema elements and commands for ProseMirror", | ||
@@ -5,0 +5,0 @@ "main": "dist/schema-list.js", |
@@ -143,3 +143,3 @@ import {findWrapping, liftTarget, canSplit, ReplaceAroundStep} from "prosemirror-transform" | ||
} | ||
let nextType = $to.pos == $from.end() ? grandParent.contentMatchAt($from.indexAfter(-1)).defaultType : null | ||
let nextType = $to.pos == $from.end() ? grandParent.contentMatchAt(0).defaultType : null | ||
let tr = state.tr.delete($from.pos, $to.pos) | ||
@@ -146,0 +146,0 @@ let types = nextType && [null, {type: nextType}] |
Sorry, the diff of this file is not supported yet
53457