File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
packages/ui/src/rich-text-area Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ export const RichTextProvider = forwardRef<
209209 } ) ,
210210 ]
211211 : [ ] ) ,
212- ] ,
212+ ] as any ,
213213 editorProps : {
214214 attributes : {
215215 ...editorProps ?. attributes ,
Original file line number Diff line number Diff line change @@ -55,23 +55,23 @@ export function RichTextToolbar({
5555 icon = { TextBold }
5656 label = "Bold"
5757 isActive = { editorState ?. isBold }
58- onClick = { ( ) => editor ?. chain ( ) . focus ( ) . toggleBold ( ) . run ( ) }
58+ onClick = { ( ) => ( editor ?. chain ( ) . focus ( ) as any ) . toggleBold ( ) . run ( ) }
5959 />
6060 ) }
6161 { features ?. includes ( "italic" ) && (
6262 < RichTextToolbarButton
6363 icon = { TextItalic }
6464 label = "Italic"
6565 isActive = { editorState ?. isItalic }
66- onClick = { ( ) => editor ?. chain ( ) . focus ( ) . toggleItalic ( ) . run ( ) }
66+ onClick = { ( ) => ( editor ?. chain ( ) . focus ( ) as any ) . toggleItalic ( ) . run ( ) }
6767 />
6868 ) }
6969 { features ?. includes ( "strike" ) && (
7070 < RichTextToolbarButton
7171 icon = { TextStrike }
7272 label = "Strikethrough"
7373 isActive = { editorState ?. isStrike }
74- onClick = { ( ) => editor ?. chain ( ) . focus ( ) . toggleStrike ( ) . run ( ) }
74+ onClick = { ( ) => ( editor ?. chain ( ) . focus ( ) as any ) . toggleStrike ( ) . run ( ) }
7575 />
7676 ) }
7777 { features ?. includes ( "headings" ) && (
@@ -81,15 +81,15 @@ export function RichTextToolbar({
8181 label = "Heading 1"
8282 isActive = { editorState ?. isHeading1 }
8383 onClick = { ( ) =>
84- editor ?. chain ( ) . focus ( ) . toggleHeading ( { level : 1 } ) . run ( )
84+ ( editor ?. chain ( ) . focus ( ) as any ) . toggleHeading ( { level : 1 } ) . run ( )
8585 }
8686 />
8787 < RichTextToolbarButton
8888 icon = { Heading2 }
8989 label = "Heading 2"
9090 isActive = { editorState ?. isHeading2 }
9191 onClick = { ( ) =>
92- editor ?. chain ( ) . focus ( ) . toggleHeading ( { level : 2 } ) . run ( )
92+ ( editor ?. chain ( ) . focus ( ) as any ) . toggleHeading ( { level : 2 } ) . run ( )
9393 }
9494 />
9595 </ >
You can’t perform that action at this time.
0 commit comments