[222] change headers signature in Editor (#113)
This commit is contained in:
parent
236c469c98
commit
55e8f6a20a
|
@ -132,7 +132,7 @@ export const Editor = (props: EditorProps) => {
|
|||
openOnClick: false
|
||||
}),
|
||||
Heading.configure({
|
||||
levels: [1, 2, 3]
|
||||
levels: [2, 3, 4]
|
||||
}),
|
||||
BulletList,
|
||||
OrderedList,
|
||||
|
|
|
@ -31,9 +31,9 @@ export const TextBubbleMenu = (props: BubbleMenuProps) => {
|
|||
|
||||
const isBold = isActive('bold')
|
||||
const isItalic = isActive('italic')
|
||||
const isH1 = isActive('heading', { level: 1 })
|
||||
const isH2 = isActive('heading', { level: 2 })
|
||||
const isH3 = isActive('heading', { level: 3 })
|
||||
const isH1 = isActive('heading', { level: 2 })
|
||||
const isH2 = isActive('heading', { level: 3 })
|
||||
const isH3 = isActive('heading', { level: 4 })
|
||||
const isBlockQuote = isActive('blockquote')
|
||||
const isOrderedList = isActive('isOrderedList')
|
||||
const isBulletList = isActive('isBulletList')
|
||||
|
@ -117,7 +117,7 @@ export const TextBubbleMenu = (props: BubbleMenuProps) => {
|
|||
[styles.bubbleMenuButtonActive]: isH1()
|
||||
})}
|
||||
onClick={() => {
|
||||
props.editor.chain().focus().toggleHeading({ level: 1 }).run()
|
||||
props.editor.chain().focus().toggleHeading({ level: 2 }).run()
|
||||
toggleTextSizePopup()
|
||||
}}
|
||||
>
|
||||
|
@ -134,7 +134,7 @@ export const TextBubbleMenu = (props: BubbleMenuProps) => {
|
|||
[styles.bubbleMenuButtonActive]: isH2()
|
||||
})}
|
||||
onClick={() => {
|
||||
props.editor.chain().focus().toggleHeading({ level: 2 }).run()
|
||||
props.editor.chain().focus().toggleHeading({ level: 3 }).run()
|
||||
toggleTextSizePopup()
|
||||
}}
|
||||
>
|
||||
|
@ -151,7 +151,7 @@ export const TextBubbleMenu = (props: BubbleMenuProps) => {
|
|||
[styles.bubbleMenuButtonActive]: isH3()
|
||||
})}
|
||||
onClick={() => {
|
||||
props.editor.chain().focus().toggleHeading({ level: 3 }).run()
|
||||
props.editor.chain().focus().toggleHeading({ level: 4 }).run()
|
||||
toggleTextSizePopup()
|
||||
}}
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue
Block a user