Skip to content

Commit

Permalink
fix: unremoe Link Control
Browse files Browse the repository at this point in the history
  • Loading branch information
hassanad94 committed May 24, 2024
1 parent 1f36e62 commit 65f195a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/sn-editor-react/src/components/menu-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { Editor } from '@tiptap/react'
import React, { FC } from 'react'
import { useLocalization } from '../hooks'
import { getCommonStyles } from '../styles'
import { HTMLEditorControl, ImageControl, TableControl, TypographyControl } from './controls'
import { HTMLEditorControl, ImageControl, LinkControl, TableControl, TypographyControl } from './controls'

const useStyles = makeStyles((theme) => {
const commonStyles = getCommonStyles(theme)
Expand Down Expand Up @@ -163,6 +163,10 @@ export const MenuBar: FC<MenuBarProps> = ({ editor }) => {
<FormatListNumberedIcon />
</IconButton>
</Tooltip>
<LinkControl
editor={editor}
buttonProps={{ classes: { root: classes.button, colorPrimary: classes.buttonPrimary } }}
/>
<ImageControl
editor={editor}
buttonProps={{ classes: { root: classes.button, colorPrimary: classes.buttonPrimary } }}
Expand Down

0 comments on commit 65f195a

Please sign in to comment.