Skip to content

Commit

Permalink
The editor shouldn't have content content text*
Browse files Browse the repository at this point in the history
  • Loading branch information
cesardeazevedo committed Jul 29, 2024
1 parent 1e39f94 commit a975f11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion examples/react/src/extensions/NProfileExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ export const NProfileExtension = Node.create({

group: 'inline',

content: 'text*',
renderText(p) {
return p.node.textContent
},

renderHTML(p) {
return ['span', { ...p.node.attrs }, 'mention']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const NProfileExtension = Node.create({

group: 'inline',

content: 'text*',
content: 'text?',

renderHTML(p) {
return ['span', p.node.attrs, '@']
Expand Down

0 comments on commit a975f11

Please sign in to comment.