This version brings some important and breaking changes. Please consider to upgrade v2.
And very special thanks to Oririner from Reddit for such a great and detailed review. This feedback helped me a lot especially to release this version.
-
inputProps
andviewProps
for both input and content div. 🎉You can customize
input
element and thediv
that shows edited value. See Examples pages for detailes usage. -
onValidationFail
prop. 🎉 🔒You don't have to stick to the default validation message and styling. You can track the
validity
and act based on its value. See the examples page. -
Add
hint
prop.Useful if you want to show a simple hint message at the bottom of input element.
-
Support for more input types. ✅
New Types ->
date
,datetime-local
,time
,month
,url
,week
,tel
-
Add more examples -> https://alioguzhan.github.io/react-editext/
-
Remove
inputClassName
andcontainerClassName
props⚠️ ❌Since we added
inputProps
andviewProps
these are no longer needed. -
Remove
save on press Enter
feature.⚠️ ❌This blocks new line feature in textarea.
-
Added
type=button
to all buttons. -
Improve tests
-
Added
className
prop for custom styling to text content -
Added tests
-
Trigger save action on press Enter
-
Improve default styling for Firefox and Safari
-
Added this changelog
- Add
validation
feature. Now we can pass a function to validate the content before save it. See examples page for more details.
- Initial Release