mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-03 06:13:14 +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({
|
const { manager, state, getContext } = useRemirror({
|
||||||
extensions: () => [
|
extensions: () => [
|
||||||
new BlockquoteExtension(),
|
new BlockquoteExtension(),
|
||||||
new BoldExtension(),
|
new BoldExtension({}),
|
||||||
new BulletListExtension(),
|
new BulletListExtension({}),
|
||||||
new CodeBlockExtension({ syntaxTheme: 'base16_ateliersulphurpool_light' }),
|
new CodeBlockExtension({ syntaxTheme: 'base16_ateliersulphurpool_light' }),
|
||||||
new CodeExtension(),
|
new CodeExtension(),
|
||||||
new DataHubMentionsExtension(),
|
new DataHubMentionsExtension({}),
|
||||||
new DropCursorExtension(),
|
new DropCursorExtension({}),
|
||||||
new HardBreakExtension(),
|
new HardBreakExtension(),
|
||||||
new HeadingExtension(),
|
new HeadingExtension({}),
|
||||||
new HistoryExtension(),
|
new HistoryExtension({}),
|
||||||
new HorizontalRuleExtension(),
|
new HorizontalRuleExtension({}),
|
||||||
new ImageExtension({ enableResizing: !readOnly }),
|
new ImageExtension({ enableResizing: !readOnly }),
|
||||||
new ItalicExtension(),
|
new ItalicExtension(),
|
||||||
new LinkExtension({ autoLink: true, defaultTarget: '_blank' }),
|
new LinkExtension({ autoLink: true, defaultTarget: '_blank' }),
|
||||||
new ListItemExtension(),
|
new ListItemExtension({}),
|
||||||
new MarkdownExtension({ htmlSanitizer: DOMPurify.sanitize, htmlToMarkdown, markdownToHtml }),
|
new MarkdownExtension({ htmlSanitizer: DOMPurify.sanitize, htmlToMarkdown, markdownToHtml }),
|
||||||
new OrderedListExtension(),
|
new OrderedListExtension(),
|
||||||
new UnderlineExtension(),
|
new UnderlineExtension(),
|
||||||
new StrikeExtension(),
|
new StrikeExtension(),
|
||||||
new TableExtension({ resizable: false }),
|
new TableExtension({ resizable: false }),
|
||||||
...(readOnly ? [] : [new HistoryExtension()]),
|
...(readOnly ? [] : [new HistoryExtension({})]),
|
||||||
],
|
],
|
||||||
content,
|
content,
|
||||||
stringHandler: 'markdown',
|
stringHandler: 'markdown',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user