1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-09-01 03:11:44 +02:00
This commit is contained in:
Ian Storm Taylor
2016-06-23 10:49:36 -07:00
parent b3b16227bc
commit a3c4c04193

View File

@@ -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,