mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-09-01 03:11:44 +02:00
cleanup
This commit is contained in:
@@ -979,7 +979,7 @@ const Node = {
|
||||
|
||||
// While the parent is an inline parent, split the inline nodes.
|
||||
while (parent = node.getClosestInline(firstChild)) {
|
||||
firstChild = parent.merge({ nodes: [firstChild] })
|
||||
firstChild = parent.merge({ nodes: Inline.createMap([firstChild]) })
|
||||
secondChild = Inline.create({
|
||||
nodes: [secondChild],
|
||||
type: parent.type,
|
||||
|
Reference in New Issue
Block a user