bymi15 / react-edit-text

Simple 'click to edit' editable text component for React
https://www.npmjs.com/package/react-edit-text
MIT License
53 stars 10 forks source link

display value? #8

Closed chrisschaub closed 2 years ago

chrisschaub commented 3 years ago

Would there be a way to "display" parsed text, but when edit is clicked, just edit raw value? Thinking of parsing text for urls on display.

bymi15 commented 3 years ago

Hi thank you for your feedback. I am not sure if I understood correctly, but wouldn't that cause a conflict? If I were to click on the component, would it open edit mode or would it navigate me to the URL?

fxgit commented 2 years ago

It would be great to be able to give a function to format the value. for example in edit mode an input with the number 5 is shown but when not edited this function formats the value to the text "5 inches"

bymi15 commented 2 years ago

:tada: This issue has been resolved in version 4.3.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: