1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-18 22:24:38 +01:00
slate/examples/hovering-menu
来诺 d4a58543b5 Fix hovering menu (#1230)
* Fix hovering menu example by using ReactDOM.createPortal

* Format

* Fix tests
2017-10-14 13:06:27 -07:00
..
2017-10-14 13:06:27 -07:00
2016-07-14 16:31:55 -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!