mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-31 02:49:56 +02:00
Add hanging option to unsetNodes (#5189)
Since this really just calls setNodes, it seems like it should offer the same options. Without this change, doing something like applying a mark to the contents of a selected block with `hanging` works one way, while trying to do the reverse (remove the mark) cannot include the "hang".
This commit is contained in:
@@ -100,6 +100,7 @@ export interface NodeTransforms {
|
||||
at?: Location
|
||||
match?: NodeMatch<T>
|
||||
mode?: MaximizeMode
|
||||
hanging?: boolean
|
||||
split?: boolean
|
||||
voids?: boolean
|
||||
}
|
||||
@@ -825,6 +826,7 @@ export const NodeTransforms: NodeTransforms = {
|
||||
at?: Location
|
||||
match?: NodeMatch<T>
|
||||
mode?: MaximizeMode
|
||||
hanging?: boolean
|
||||
split?: boolean
|
||||
voids?: boolean
|
||||
} = {}
|
||||
|
Reference in New Issue
Block a user