github ianstormtaylor/slate slate@0.91.3

latest releases: slate-react@0.110.1, slate-react@0.110.0, slate-react@0.109.0...
19 months ago

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.

Don't miss a new slate release

NewReleases is sending notifications on new releases.