Browse Source

fix: oss sync

pull/9766/head
DarkPhoenix2704 2 months ago
parent
commit
e5c6c3cc07
  1. 10
      packages/nc-gui/helpers/tiptapExtensions/mention/index.ts
  2. 9
      packages/nc-gui/helpers/tiptapExtensions/mention/suggestion.ts

10
packages/nc-gui/helpers/tiptapExtensions/mention/index.ts

@ -0,0 +1,10 @@
import * as TipTapMention from '@tiptap/extension-mention'
export const Mention = TipTapMention.Mention.extend({
renderHTML({ HTMLAttributes: _ }) {
return ['span']
},
renderText({ node: _ }) {
return ''
},
})

9
packages/nc-gui/helpers/tiptapExtensions/mention/suggestion.ts

@ -0,0 +1,9 @@
export default {
render: () => {
return {
onStart: (_props: Record<string, any>) => {},
onUpdate(_props: Record<string, any>) {},
}
},
}
Loading…
Cancel
Save