remove additional aligns in incut menu (#198)
This commit is contained in:
parent
cb2190405d
commit
1a233d074d
|
@ -17,13 +17,6 @@ export const IncutBubbleMenu = (props: Props) => {
|
|||
const [substratBubbleOpen, setSubstratBubbleOpen] = createSignal(false)
|
||||
return (
|
||||
<div ref={props.ref} class={styles.BubbleMenu}>
|
||||
<button
|
||||
type="button"
|
||||
class={styles.bubbleMenuButton}
|
||||
onClick={() => props.editor.chain().focus().setArticleFloat('left').run()}
|
||||
>
|
||||
<Icon name="editor-image-align-left" />
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class={styles.bubbleMenuButton}
|
||||
|
@ -46,15 +39,6 @@ export const IncutBubbleMenu = (props: Props) => {
|
|||
>
|
||||
<Icon name="editor-image-half-align-right" />
|
||||
</button>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
class={styles.bubbleMenuButton}
|
||||
onClick={() => props.editor.chain().focus().setArticleFloat('right').run()}
|
||||
>
|
||||
<Icon name="editor-image-align-right" />
|
||||
</button>
|
||||
|
||||
<div class={styles.delimiter} />
|
||||
<div class={styles.dropDownHolder}>
|
||||
<button
|
||||
|
|
|
@ -4,7 +4,7 @@ declare module '@tiptap/core' {
|
|||
interface Commands<ReturnType> {
|
||||
Article: {
|
||||
toggleArticle: () => ReturnType
|
||||
setArticleFloat: (float: null | 'left' | 'half-left' | 'right' | 'half-right') => ReturnType
|
||||
setArticleFloat: (float: null | 'half-left' | 'half-right') => ReturnType
|
||||
setArticleBg: (bg: null | string) => ReturnType
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user