1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-19 13:41:19 +02:00

Fix transform "wrapTextAtRange" throwing JS error

This commit is contained in:
Samy Pesse
2016-10-24 21:03:48 +02:00
parent c8f69a4f94
commit ddf2221929

View File

@@ -1012,8 +1012,8 @@ export function wrapTextAtRange(transform, range, prefix, suffix = prefix, optio
end = end.moveForward(prefix.length)
}
transform.insertTextAtRange(start, prefix, { normalize })
transform.insertTextAtRange(end, suffix, { normalize })
transform.insertTextAtRange(start, prefix, [], { normalize })
transform.insertTextAtRange(end, suffix, [], { normalize })
return transform
}