Merge branch 'master' into issue-232

This commit is contained in:
Christoph Flathmann
2019-05-08 13:34:12 +02:00
committed by GitHub
46 changed files with 1614 additions and 1490 deletions

View File

@@ -34,8 +34,8 @@ index = $pos.index(d)
// this is a copy of splitListItem
// see https://github.com/ProseMirror/prosemirror-schema-list/blob/master/src/schema-list.js
export default function splitListItem(itemType) {
return function _splitListItem(state, dispatch) {
export default function splitToDefaultListItem(itemType) {
return function (state, dispatch) {
const { $from, $to, node } = state.selection
if ((node && node.isBlock) || $from.depth < 2 || !$from.sameParent($to)) return false
const grandParent = $from.node(-1)