mirror of https://github.com/fantasticit/think.git
fix: show image bubble menu when there is a src
This commit is contained in:
parent
0e54e4af65
commit
ea7da9d6a3
|
@ -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,
|
||||
}}
|
||||
|
|
Loading…
Reference in New Issue