slate

A completely customizable framework for building rich text editors. (Currently in beta.)

MIT License

Downloads
12.2M
Stars
28.9K
Committers
575

Bot releases are visible (Hide)

slate - [email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

slate - [email protected]

Published by github-actions[bot] over 1 year ago

Minor Changes

  • #5363 d42cd005 Thanks @aciccarello! - update dependencies on react hooks to be more senstive to changes

    The code should now meet eslint react hook standards

    This could result in more renders

    closes #3886

Patch Changes

slate - [email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • #5362 43999356 Thanks @jason0x43! - Fix an issue where pastes in Safari wouldn't include application/x-slate-fragment data

  • #5359 9825d29b Thanks @jason0x43! - Fix an issue on Android where content containing a newline wouldn't be pasted properly

slate - [email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • #5346 a5e833f6 Thanks @edhager! - Fix a problem with Editable not calling the decorate function passed as a prop when it should.

  • #5343 f7f02a8b Thanks @12joan! - Fix error when triple-clicking a word preceding a contenteditable="false" DOM node in Chrome

slate - [email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • #5339 62f8ddd9 Thanks @12joan! - Fixes #5335. To prevent performance issues, make sure to wrap custom renderPlaceholder values in useCallback.
slate - [email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • #5325 af3f828b Thanks @clauderic! - Fix edge-cases in the Android input manager when text leaf nodes are deleted, such as when deleting text leaf nodes adjacent to inline void nodes.

  • #5327 4205e0f0 Thanks @YasinChan! - Fix the issue of composition API and beforeinput event triggering between Chrome versions 60-75 on the Android platform.

slate - [email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

slate - [email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • #5315 5784a38b Thanks @clauderic! - The RestoreDOM manager that is used Android no longer restores the DOM to its previous state for text mutations. This allows the editor state to be reconciled during a composition without interrupting the composition, as programatically updating the textContent of a text node ends the current composition.

  • #5315 5784a38b Thanks @clauderic! - Fixed consumer defined onInput event handler not being invoked when passed to the <Editable> component.

slate - [email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

slate - [email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • #5310 b94254d6 Thanks @etrepum! - Fix to ensure that the latest versions of onChange and renderPlaceholder are used
slate - [email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • #5311 0ac72a62 Thanks @zbeyens! - Fix #5295 regression. editor.shouldNormalize new option: initialDirtyPathsLength: number
slate - [email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

slate - [email protected]

Published by github-actions[bot] over 1 year 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.
slate - [email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • #5297 967d99eb Thanks @edhager! - Fix memory leaks by adding clean-up code that looks for ref resets in Editable and Text.
slate - [email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

slate - [email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

slate - [email protected]

Published by github-actions[bot] over 1 year ago

Minor Changes

  • #5267 463edbd2 Thanks @ilya2204! - Allow to change clipboard fragment format name

  • #5271 9635b992 Thanks @dsvgit! - If TextComponent decorations keep the same offsets and only paths are changed, prevent re-rendering because only decoration offsets matter when leaves are calculated.

slate - [email protected]

Published by github-actions[bot] over 1 year ago

Minor Changes

slate - [email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

slate - [email protected]

Published by github-actions[bot] over 1 year ago

Minor Changes

Patch Changes

  • #5265 3cf51f4d Thanks @kylemclean! - Improve compatibility for browsers that do not support ResizeObserver or :where selector
Package Rankings
Top 0.31% on Npmjs.org
Top 9.0% on Clojars.org
Badges
Extracted from project README
Related Projects