prosemirror-schema-list
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -0,1 +1,7 @@ | ||
## 1.0.3 (2019-04-19) | ||
### Bug fixes | ||
`sinkListItem` will no longer copy the attributes of the parent list when creating an inner list. | ||
## 1.0.2 (2019-01-31) | ||
@@ -2,0 +8,0 @@ |
@@ -237,3 +237,3 @@ 'use strict'; | ||
var inner = prosemirrorModel.Fragment.from(nestedBefore ? itemType.create() : null); | ||
var slice = new prosemirrorModel.Slice(prosemirrorModel.Fragment.from(itemType.create(null, prosemirrorModel.Fragment.from(parent.type.create(parent.attrs, inner)))), | ||
var slice = new prosemirrorModel.Slice(prosemirrorModel.Fragment.from(itemType.create(null, prosemirrorModel.Fragment.from(parent.type.create(null, inner)))), | ||
nestedBefore ? 3 : 1, 0); | ||
@@ -240,0 +240,0 @@ var before = range.start, after = range.end; |
{ | ||
"name": "prosemirror-schema-list", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "List-related schema elements and commands for ProseMirror", | ||
@@ -5,0 +5,0 @@ "main": "dist/schema-list.js", |
@@ -222,3 +222,3 @@ import {findWrapping, liftTarget, canSplit, ReplaceAroundStep} from "prosemirror-transform" | ||
let inner = Fragment.from(nestedBefore ? itemType.create() : null) | ||
let slice = new Slice(Fragment.from(itemType.create(null, Fragment.from(parent.type.create(parent.attrs, inner)))), | ||
let slice = new Slice(Fragment.from(itemType.create(null, Fragment.from(parent.type.create(null, inner)))), | ||
nestedBefore ? 3 : 1, 0) | ||
@@ -225,0 +225,0 @@ let before = range.start, after = range.end |
Sorry, the diff of this file is not supported yet
53352