mirror of
https://github.com/fantasticit/think.git
synced 2026-11-02 00:03:34 +08:00
fix: show image bubble menu when there is a src
This commit is contained in:
@@ -26,7 +26,7 @@ export const ImageBubbleMenu = ({ editor }) => {
|
||||
className={'bubble-menu'}
|
||||
editor={editor}
|
||||
pluginKey="image-bubble-menu"
|
||||
shouldShow={() => editor.isActive(Image.name) && !!attrs.src}
|
||||
shouldShow={() => editor.isActive(Image.name) && !!editor.getAttributes(Image.name).src}
|
||||
tippyOptions={{
|
||||
maxWidth: 456,
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user