Skip to content

Commit

Permalink
fix(ts): Suppress ts errors on Editor.tsx (datahub-project#11275)
Browse files Browse the repository at this point in the history
  • Loading branch information
pinakipb2 authored and sleeperdeep committed Dec 17, 2024
1 parent e8a80c5 commit 9c0f963
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,26 +50,26 @@ export const Editor = forwardRef((props: EditorProps, ref) => {
const { manager, state, getContext } = useRemirror({
extensions: () => [
new BlockquoteExtension(),
new BoldExtension(),
new BulletListExtension(),
new BoldExtension({}),
new BulletListExtension({}),
new CodeBlockExtension({ syntaxTheme: 'base16_ateliersulphurpool_light' }),
new CodeExtension(),
new DataHubMentionsExtension(),
new DropCursorExtension(),
new DataHubMentionsExtension({}),
new DropCursorExtension({}),
new HardBreakExtension(),
new HeadingExtension(),
new HistoryExtension(),
new HorizontalRuleExtension(),
new HeadingExtension({}),
new HistoryExtension({}),
new HorizontalRuleExtension({}),
new ImageExtension({ enableResizing: !readOnly }),
new ItalicExtension(),
new LinkExtension({ autoLink: true, defaultTarget: '_blank' }),
new ListItemExtension(),
new ListItemExtension({}),
new MarkdownExtension({ htmlSanitizer: DOMPurify.sanitize, htmlToMarkdown, markdownToHtml }),
new OrderedListExtension(),
new UnderlineExtension(),
new StrikeExtension(),
new TableExtension({ resizable: false }),
...(readOnly ? [] : [new HistoryExtension()]),
...(readOnly ? [] : [new HistoryExtension({})]),
],
content,
stringHandler: 'markdown',
Expand Down

0 comments on commit 9c0f963

Please sign in to comment.