inokawa / rich-textarea

A small customizable textarea for React to colorize, highlight, decorate texts, offer autocomplete and much more.
https://inokawa.github.io/rich-textarea/
MIT License
317 stars 8 forks source link

Add mode to use contenteditable as io #74

Closed inokawa closed 1 week ago

inokawa commented 1 year ago

Is your feature request related to a problem? Please describe.

Using textarea as io is suitable for most case, however there are several things impossible to do with textarea, such as changing font-size or adding padding to words.

Describe the solution you'd like

Add option to use contenteditable instead of textarea.

Describe alternatives you've considered

Nothing.

Additional context

Nothing.

aeharding commented 1 year ago

I would love this. I discussed this a couple months ago, lamenting how nothing like this exists for the web. This library gets close — but it would be great to have the ability to change font size and font weight as well.

inokawa commented 9 months ago

https://github.com/yuneco/canvas-draw-styled-text

inokawa commented 9 months ago

https://github.com/w3c/csswg-drafts/issues/4603

A1X5H04 commented 2 months ago

When will this be available, I am waiting for it for so long..

inokawa commented 2 months ago

Hi, I've been experimenting with contenteditable recently to make a new library. Please post here if you have something necessary for your usecase, to judge which features are needed for the first release.

inokawa commented 1 week ago

Closing because it is supported in the other package. The repo will be available soon... https://github.com/inokawa/edix