File tree Expand file tree Collapse file tree
packages/ui/components/editor/plugins Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -360,7 +360,6 @@ export default function ToolbarPlugin(props: TextEditorProps) {
360360 }
361361 } ) ;
362362 }
363- // eslint-disable-next-line react-hooks/exhaustive-deps
364363 } , [ props . updateTemplate ] ) ;
365364
366365 useEffect ( ( ) => {
@@ -375,7 +374,7 @@ export default function ToolbarPlugin(props: TextEditorProps) {
375374 $getRoot ( ) . select ( ) ;
376375 try {
377376 $insertNodes ( nodes ) ;
378- } catch ( e : unknown ) {
377+ } catch {
379378 // resolves: "topLevelElement is root node at RangeSelection.insertNodes"
380379 // @see https://stackoverflow.com/questions/73094258/setting-editor-from-html
381380 const paragraphNode = $createParagraphNode ( ) ;
@@ -397,7 +396,6 @@ export default function ToolbarPlugin(props: TextEditorProps) {
397396 } ) ;
398397 } ) ;
399398 }
400- // eslint-disable-next-line react-hooks/exhaustive-deps
401399 } , [ ] ) ;
402400
403401 useEffect ( ( ) => {
@@ -467,7 +465,7 @@ export default function ToolbarPlugin(props: TextEditorProps) {
467465 </ >
468466 ) }
469467
470- < >
468+ < div className = "flex gap-1" >
471469 { ! props . excludedToolbarItems ?. includes ( "bold" ) && (
472470 < Button
473471 aria-label = "Bold"
@@ -508,7 +506,7 @@ export default function ToolbarPlugin(props: TextEditorProps) {
508506 { isLink && createPortal ( < FloatingLinkEditor editor = { editor } /> , document . body ) } { " " }
509507 </ >
510508 ) }
511- </ >
509+ </ div >
512510 { props . variables && (
513511 < div className = { `${ props . addVariableButtonTop ? "-mt-10" : "" } ml-auto` } >
514512 < AddVariablesDropdown
You can’t perform that action at this time.
0 commit comments