fix: show image bubble menu when there is a src

This commit is contained in:
fantasticit 2022-03-22 12:44:30 +08:00
parent 0e54e4af65
commit ea7da9d6a3
1 changed files with 1 additions and 1 deletions

View File

@ -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,
}}