1
0
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:
Samy Pesse
2016-10-20 23:48:42 +02:00
parent a0a57f36f9
commit 8ed3f12aba

View File

@@ -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`.
*