This commit is contained in:
Ilya Y 2023-08-17 08:01:07 +03:00 committed by GitHub
parent e958f5c41d
commit 9d36b8b8ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ export const FigureBubbleMenu = (props: Props) => {
ref={triggerRef}
type="button"
class={styles.bubbleMenuButton}
onClick={() => props.editor.chain().focus().setFigcaptionFocus(true).run()}
onClick={() => props.editor.chain().focus().setFigureFloat('left').run()}
>
<Icon name="editor-image-align-left" />
</button>
@ -62,9 +62,7 @@ export const FigureBubbleMenu = (props: Props) => {
<button
type="button"
class={styles.bubbleMenuButton}
onClick={() => {
props.editor.chain().focus().setFigcaptionFocus(true).run()
}}
onClick={() => props.editor.chain().focus().setFigcaptionFocus(true).run()}
>
<span style={{ color: 'white' }}>{t('Add signature')}</span>
</button>