mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-07-30 20:10:24 +02:00
Remove no longer existant normalize operation
This commit is contained in:
@@ -33,9 +33,7 @@ const OPERATIONS = {
|
||||
set_node: setNode,
|
||||
split_node: splitNode,
|
||||
// Selection operations.
|
||||
set_selection: setSelection,
|
||||
// Normalize
|
||||
normalize
|
||||
set_selection: setSelection
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -63,17 +61,6 @@ export function applyOperation(transform, operation) {
|
||||
return transform
|
||||
}
|
||||
|
||||
/**
|
||||
* Normalize the state with core rules
|
||||
*
|
||||
* @param {State} state
|
||||
* @return {State}
|
||||
*/
|
||||
|
||||
function normalize(state) {
|
||||
return state.normalize(defaultSchema)
|
||||
}
|
||||
|
||||
/**
|
||||
* Add mark to text at `offset` and `length` in node by `path`.
|
||||
*
|
||||
|
Reference in New Issue
Block a user