mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-24 11:49:02 +08:00
e9465ec0f6
* Add `editor` dependency when registering `BubbleMenuPlugin` When we are initializing editor via the `useEditor` hook with dependencies the `BubbleMenu` component is only registered the first time the editor is initialized. Adding editor to the dependency array registering/unregistering the `BubbleMenuPlugin` fixes this. (I tested exactly this code in our project.) I also added a check that ensures that the menu element referenced via the `useRef` is defined when registering the plugin - otherwise, there is no point in registering the plugin. * Add `editor` dependency when registering `FloatingMenuPlugin` |
||
---|---|---|
.. | ||
core | ||
extension-blockquote | ||
extension-bold | ||
extension-bubble-menu | ||
extension-bullet-list | ||
extension-character-count | ||
extension-code | ||
extension-code-block | ||
extension-code-block-lowlight | ||
extension-collaboration | ||
extension-collaboration-cursor | ||
extension-color | ||
extension-document | ||
extension-dropcursor | ||
extension-floating-menu | ||
extension-focus | ||
extension-font-family | ||
extension-gapcursor | ||
extension-hard-break | ||
extension-heading | ||
extension-highlight | ||
extension-history | ||
extension-horizontal-rule | ||
extension-image | ||
extension-italic | ||
extension-link | ||
extension-list-item | ||
extension-mention | ||
extension-ordered-list | ||
extension-paragraph | ||
extension-placeholder | ||
extension-strike | ||
extension-subscript | ||
extension-superscript | ||
extension-table | ||
extension-table-cell | ||
extension-table-header | ||
extension-table-row | ||
extension-task-item | ||
extension-task-list | ||
extension-text | ||
extension-text-align | ||
extension-text-style | ||
extension-typography | ||
extension-underline | ||
html | ||
react | ||
starter-kit | ||
suggestion | ||
vue-2 | ||
vue-3 |