element.current from useEffect in BubbleMenu and FloatingMenu (#2297)
* Remove `element.current` from `useEffect` dependencies Changes to the `element.current` don't trigger `useEffect` rerender and shouldn't be used in the dependency array. One discussion about is this is for example here: https://stackoverflow.com/questions/60476155/is-it-safe-to-use-ref-current-as-useeffects-dependency-when-ref-points-to-a-dom It's also causing some subtle bugs when mounting and unmounting editors. * Fix `FloatingMenu` and `BubbleMenu` element references * Fix linting errors * Don't register plugin when the editor is already destroyed; Simplify `HTMLElement` reference handling * Fix lint error
Tiptap
A headless, framework-agnostic and extendable rich text editor, based on ProseMirror.
If you’re looking for tiptap 1, click here.
Examples
Have a look at the examples to see tiptap in action.
Documentation
The full documentation is a available on www.tiptap.dev.
Community
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
Sponsors 💖
|
überdosis |
Rimsys |
![]() Complish |
Gamma |
Storyblok |
|
Reflect |
Bitcrowd |
Ziff Media |
Incyte Studios |
dotCMS |
iFixit, @shodgson, Markee Co., Makelog, Zephir, IT Xpert AG, ApostropheCMS, Novadiscovery, Omics Data Automation, Gretel, Flow Mobile, Ycode, DocIQ and hundreds of awesome inviduals.
Using tiptap in production? Invest in the future of tiptap and become a sponsor!
Contributing
Please see CONTRIBUTING for details.
Contributors
Sam Willis, Brian Hung, Dirk Holtwick, Sam Duvall, Christoph Flathmann, Erick Wilder, Marius Tolzmann, jjangga0214, Maya Nedeljkovich, Ryan Bliss, Gregor and many more.
License
The MIT License (MIT). Please see License File for more information.
