1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-20 06:01:24 +02:00

Add annotation-related ops to path.transform. (#2) (#2915)

This commit is contained in:
themithy
2019-08-19 18:04:30 +02:00
committed by Ian Storm Taylor
parent d4b003862d
commit 5c4e4f9548

View File

@@ -319,6 +319,9 @@ function transform(path, operation) {
type === 'set_node' ||
type === 'set_selection' ||
type === 'set_value' ||
type === 'add_annotation' ||
type === 'remove_annotation' ||
type === 'set_annotation' ||
path.size === 0
) {
return List([path])