react-annotate-text
A custom react component for annotating text content inside HTML
Installation
npm install react-annotate-text
Feel free to replace with yarn counterparts.
Usage
;
<ReactAnnotateText srcDoc=htmlContent src=htmlURL iframeTitle="Demo" height=600 width=500 highlightData=highlightData selectionPopup= <button onClick= >Add Highlight</button> hoverPopup= <button onClick= >Remove Highlight</button> />
See example directory for complete code.
Contributing
- Install dependencies
npm install
- Start development server
npm start