You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This isn't exactly an issue, more of a query. I need to modify the content of a comment after it's been posted, to add icons and hoverable links to the text. For example, someone posts {abc} with the {} delimiters, I want to transform that into <img src="img/abc.png/>. Same goes for something like [] which would become <a> tags with specific classes to allow for a hover.
I've tested this in chrome dev tools, and I can manually add those tags into the <p> tag that holds the comment. However I haven't found a way to do this as a reaction to a comment being posted, since the comment is in an iframe which I can't get with document.getElementById. So, is there a way to get at that comment using your library, or using the comment.id which is given in the handleNewComment callback function? Or not possible?
The text was updated successfully, but these errors were encountered:
This isn't exactly an issue, more of a query. I need to modify the content of a comment after it's been posted, to add icons and hoverable links to the text. For example, someone posts
{abc}
with the {} delimiters, I want to transform that into<img src="img/abc.png/>
. Same goes for something like [] which would become<a>
tags with specific classes to allow for a hover.I've tested this in chrome dev tools, and I can manually add those tags into the
<p>
tag that holds the comment. However I haven't found a way to do this as a reaction to a comment being posted, since the comment is in an iframe which I can't get withdocument.getElementById
. So, is there a way to get at that comment using your library, or using the comment.id which is given in thehandleNewComment
callback function? Or not possible?The text was updated successfully, but these errors were encountered: