trix
trix copied to clipboard
Custom color formating lost after feeding data from database using React
<input type="hidden" id="trix-input" value="<div>abc <span style="color: red;">123</span></div>">
<trix-editor input="trix-input"></trix-editor>
The above code works just fine when using html. However, in a react component, css styles get stripped.
Details
- Trix version: 1.3.1
- Browser name and version: Google Chrome, Firefox and Explorer
- Operating system: Mac Os
Have you made any progress on this issue?. Thanks
I've posted the answer here @rockwellll
https://stackoverflow.com/questions/69556005/react-trix-color-is-removed-when-feeding-data-to-input/70443218#70443218