mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-20 06:01:24 +02:00
Fix transform "wrapTextAtRange" throwing JS error
This commit is contained in:
@@ -1012,8 +1012,8 @@ export function wrapTextAtRange(transform, range, prefix, suffix = prefix, optio
|
|||||||
end = end.moveForward(prefix.length)
|
end = end.moveForward(prefix.length)
|
||||||
}
|
}
|
||||||
|
|
||||||
transform.insertTextAtRange(start, prefix, { normalize })
|
transform.insertTextAtRange(start, prefix, [], { normalize })
|
||||||
transform.insertTextAtRange(end, suffix, { normalize })
|
transform.insertTextAtRange(end, suffix, [], { normalize })
|
||||||
|
|
||||||
return transform
|
return transform
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user