We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
entityStyleFn: (entity) => { const entityType = entity.get('type').toLowerCase(); const data = entity.getData(); switch(entityType){ case 'attachment': return { element: 'a', attributes: { href: data.url } } } } let html = stateToHTML(contentState, options);
It returns html : <figure><a href="...." > </a></figure>
<figure><a href="...." > </a></figure>
How to get something like that <figure><a href="...." >Some Text</a></figure>
<figure><a href="...." >Some Text</a></figure>
Note: It returns as inner text. But I need Some Text as inner Text but how?
Some Text
The text was updated successfully, but these errors were encountered:
Stuck on this same issue, have you find any solution for this? @ahamed
Sorry, something went wrong.
No branches or pull requests
It returns html :
<figure><a href="...." > </a></figure>
How to get something like that
<figure><a href="...." >Some Text</a></figure>
Note: It returns
as inner text. But I needSome Text
as inner Text but how?The text was updated successfully, but these errors were encountered: