mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-06 23:36:31 +02:00
Remove no longer existant normalize operation
This commit is contained in:
@@ -33,9 +33,7 @@ const OPERATIONS = {
|
|||||||
set_node: setNode,
|
set_node: setNode,
|
||||||
split_node: splitNode,
|
split_node: splitNode,
|
||||||
// Selection operations.
|
// Selection operations.
|
||||||
set_selection: setSelection,
|
set_selection: setSelection
|
||||||
// Normalize
|
|
||||||
normalize
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -63,17 +61,6 @@ export function applyOperation(transform, operation) {
|
|||||||
return transform
|
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`.
|
* Add mark to text at `offset` and `length` in node by `path`.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user