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'}
|
className={'bubble-menu'}
|
||||||
editor={editor}
|
editor={editor}
|
||||||
pluginKey="image-bubble-menu"
|
pluginKey="image-bubble-menu"
|
||||||
shouldShow={() => editor.isActive(Image.name) && !!attrs.src}
|
shouldShow={() => editor.isActive(Image.name) && !!editor.getAttributes(Image.name).src}
|
||||||
tippyOptions={{
|
tippyOptions={{
|
||||||
maxWidth: 456,
|
maxWidth: 456,
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in New Issue