bonafideduck / react-highlight-within-textarea

React component for highlighting bits of text within a textarea
100 stars 13 forks source link

Can't use draftjs props such as 'readOnly' etc. #136

Closed snky1987 closed 2 years ago

snky1987 commented 2 years ago

Since the lib. uses draftjs behind the scenes it would be nice to be able to manipulate the input using the draftjs props like 'readOnly' :)

bonafideduck commented 2 years ago

There is an alpha version that does just that. https://www.npmjs.com/package/react-highlight-within-textarea/v/3.0.4-alpha

snky1987 commented 2 years ago

Thanks, it's exactly what I need 👍