mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-02 05:43:17 +00:00
fix(ts): Suppress ts errors on Editor.tsx (#11275)
This commit is contained in:
parent
05c99abb4a
commit
98544aaa6a
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user