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 2 years ago

Patch Changes

  • #5015 9ae37287 Thanks @tithanayut! - Fix deleteBackward behavior for Thai script where deleting N character(s) backward should delete
    N code point(s) instead of an entire grapheme cluster
slate - [email protected]

Published by github-actions[bot] over 2 years ago

Minor Changes

  • #4999 fe13a8f9 Thanks @alexandercampbell! - Add new Slate.Scrubber interface to allow scrubbing end user data from exception
    text. The default behavior remains unchanged.
slate - [email protected]

Published by github-actions[bot] over 2 years ago

Minor Changes

  • #4999 fe13a8f9 Thanks @alexandercampbell! - Add new Slate.Scrubber interface to allow scrubbing end user data from exception
    text. The default behavior remains unchanged.
slate - [email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

slate - [email protected]

Published by github-actions[bot] over 2 years ago

Minor Changes

Patch Changes

slate - [email protected]

Published by github-actions[bot] over 2 years ago

Minor Changes

slate - [email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

slate - [email protected]

Published by github-actions[bot] over 2 years ago

Minor Changes

  • #4974 3b7a1bf7 Thanks @dylans! - Added types for options and common string literals, thanks @JoshuaKGoldberg
slate - [email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

slate - [email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

slate - [email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

slate - [email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

slate - [email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

slate - [email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

slate - [email protected]

Published by github-actions[bot] over 2 years ago

Minor Changes

Patch Changes

slate - [email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

slate - [email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

slate - [email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

slate - [email protected]

Published by github-actions[bot] over 2 years ago

Minor Changes

  • #4873 20acca4b Thanks @bryanph! - A different behavior for inserting a soft break with shift+enter is quite common in rich text editors. Right now you have to do this in onKeyDown which is not so nice. This adds a separate insertSoftBreak method on the editor instance that gets called when a soft break is inserted. This maintains the current default behavior for backwards compatibility (it just splits the block). But at least you can easily overwrite it now.

    If you rely on overwriting editor.insertBreak for extra behavior for soft breaks this might be a breaking change for you and you should overwrite editor.insertSoftBreak instead.

Patch Changes

  • #4901 5ef346fe Thanks @bryanph! - Fixes a bug where nodes remounted on split_node and merge_node

  • #4885 07669dca Thanks @ryanmitts! - toSlatePoint should not consider a selection within a void node if the void node isn't in the editor itself.

    Prior to this fix, a nested Slate editor inside a void node in a parent editor would not allow you to start typing text in a blank editor state correctly. After the first character insertion, the selection would jump back to the start of the nested editor.

  • #4910 2a8d86f1 Thanks @jasonphillips! - Fix decorations applied across nested elements

slate - [email protected]

Published by github-actions[bot] over 2 years ago

Minor Changes

  • #4873 20acca4b Thanks @bryanph! - A different behavior for inserting a soft break with shift+enter is quite common in rich text editors. Right now you have to do this in onKeyDown which is not so nice. This adds a separate insertSoftBreak method on the editor instance that gets called when a soft break is inserted. This maintains the current default behavior for backwards compatibility (it just splits the block). But at least you can easily overwrite it now.

    If you rely on overwriting editor.insertBreak for extra behavior for soft breaks this might be a breaking change for you and you should overwrite editor.insertSoftBreak instead.

Patch Changes

Package Rankings
Top 0.31% on Npmjs.org
Top 9.0% on Clojars.org
Badges
Extracted from project README
Related Projects