Skip to content

slate@0.91.3

Compare
Choose a tag to compare
@github-actions github-actions released this 22 Feb 20:57
· 221 commits to main since this release
942fbd7

Patch Changes

  • #5295 84f811a7 Thanks @zbeyens! - New editor method that can be overridden to control when the normalization should stop. Default behavior (unchanged) is to throw an error when it iterates over 42 times the dirty paths length.

    shouldNormalize: ({
      iteration,
      dirtyPaths,
      operation,
    }: {
      iteration: number
      dirtyPaths: Path[]
      operation?: Operation
    }) => boolean
    • editor.onChange signature change: (options?: { operation?: Operation }) => void where operation is triggering the function.
    • editor.normalizeNode signature change: (entry: NodeEntry, options?: { operation?: Operation }) => void where operation is triggering the function.
    • EditorNormalizeOptions new option operation?: Operation where operation is triggering the function.