How to render custom text in renderHTML() ? #6027
Labels
Category: Open Source
The issue or pull reuqest is related to the open source packages of Tiptap.
Type: Bug
The issue or pullrequest is related to a bug
Affected Packages
react, extension-link, core
Version(s)
2.11
Bug Description
I'm trying to render custom HTML in read-only view (editable = false) in a custom link extension using
renderHTML()
for example:However I tried this on a hyperlink and it only displays the hyperlink text itself and not the url or the "hello world" example text I put. For example,
<a href="url">link text</a>
would only displaylink text
. Is there a way to display the custom text as well?Browser Used
Chrome
Code Example URL
No response
Expected Behavior
The custom text shows up
Additional Context (Optional)
No response
Dependency Updates
The text was updated successfully, but these errors were encountered: