This is not a repeat question. I know how to do a an anchor in react. The question I have, is how to honor an anchor that created vie data — post render. The data come in as json and I convert the text using an HTML parser.
Our content editors often write long pages and need the ability to drop anchors at various spots in the page. They can currently create the anchor point but can't link to it, because the page is outside of the DOM. Is there a hack, component or script that will make this work?
The rendered page contains
<a href=#goHere>Go HERE</a>
...
<a id="goHere>
But the hashtag ref wont work.
(We are not using react router. All pages are directed to / and created based on the data — the url is updated based on the page request.) Data come is encoded in html and I can converting using ReactHtmlParser
Summary: Users need to be able to add anchors to their page using CKE via Drupal then link to them from internal and external sources. Currently there is no way to instruct react to follow those anchors.
Thank you