Overwrite name to prevent breakages
This commit is contained in:
parent
b85b0f80c6
commit
e1350c084d
|
@ -31,6 +31,7 @@ const ContractMentionComponent = (props: any) => {
|
||||||
* https://tiptap.dev/guide/node-views/react#render-a-react-component
|
* https://tiptap.dev/guide/node-views/react#render-a-react-component
|
||||||
*/
|
*/
|
||||||
export const DisplayContractMention = Mention.extend({
|
export const DisplayContractMention = Mention.extend({
|
||||||
|
name: 'contract-mention',
|
||||||
parseHTML: () => [{ tag: name }],
|
parseHTML: () => [{ tag: name }],
|
||||||
renderHTML: ({ HTMLAttributes }) => [name, mergeAttributes(HTMLAttributes)],
|
renderHTML: ({ HTMLAttributes }) => [name, mergeAttributes(HTMLAttributes)],
|
||||||
addNodeView: () =>
|
addNodeView: () =>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user