trix icon indicating copy to clipboard operation
trix copied to clipboard

Custom color formating lost after feeding data from database using React

Open ertemishakk opened this issue 3 years ago • 2 comments

 <input type="hidden" id="trix-input" value="<div>abc <span style=&quot;color: red;&quot;>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

ertemishakk avatar Oct 13 '21 13:10 ertemishakk

Have you made any progress on this issue?. Thanks

rockwellll avatar Mar 25 '22 08:03 rockwellll

I've posted the answer here @rockwellll

https://stackoverflow.com/questions/69556005/react-trix-color-is-removed-when-feeding-data-to-input/70443218#70443218

ertemishakk avatar Mar 25 '22 09:03 ertemishakk