mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-18 22:24:38 +01:00
* WIP getting raw marks arrays from the current range * Always handle marksRaw as Array, fixes tests/lint * Clean up * Fixes collapsed selection raw marks, simpler _every_ condition, harmonize toolbar buttons in rich-text example * raw -> perCharacter * Add tests for toggleMark collapsed selection * Add .DS_Store to .gitignore * Added test for toggleMark add in partially marked selection, with and without other marks * Added docs for state.marksPerCharacter * replace marksPerCharacter with activeMarks * Update the other examples * Clarify getActiveMarksAtRange * AddMark/RemoveMark to use getActiveMarksByRange * User activeMarks for toggle§MarkAtRange transform
Hovering Menu Example
This example shows you add a menu that appears hovering above the current selection as a user clicks around, where you can add formatting buttons. The menu is its own React component, completely separate from Slate, but the buttons in it are wired up to change the content in Slate's editor.
Check out the Examples readme to see how to run it!