Replace Lexical LinkNode / change the way it renders inside the editor #12911
Unanswered
bhofstaetter
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Bump :) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've extended payloads LinkFeature and added custom fields to enable my editors to mark and configure a link as a button.
To represent that inside the editor, i'd like to add additional classes to the a tag which gets rendered inside lexical editor depending on the configuration my content editor makes.
I've done a similiar thing with the default TextNode. I was able to replace it through a client feature
sadly this does not work with payloads LinkNode, it seems like there is server side code inside. I tried the replacement inside the server feature, but this seems not to work at all
Can someone please guide me to the right direction?
And in general, what would be the best way to change how a node gets rendered inside (payloads) lexical?
Beta Was this translation helpful? Give feedback.
All reactions