1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-18 22:24:38 +01:00
slate/examples/hovering-menu
Samy Pessé 74bf684ec9 Add property "isEmpty" (#863)
* Add property isEmpty to State

* Update hovering menu example

* Document isEmpty

* Improve perf of isEmpty with @Soreine 's suggestion

* Fix return of isEmpty
2017-07-11 13:34:02 -07:00
..
2017-07-11 13:34:02 -07:00
2016-07-14 16:31:55 -07:00
2016-06-28 15:47:29 -07:00

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!