(It works fine in Chrome on the same Android phone. Android 16, Firefox 141.0.3)
Show HN: OverType – A Markdown WYSIWYG editor that's just a textarea
21–30 of 102 posts
Re: Show HN: OverType – A Markdown WYSIWYG editor that's just a textarea
#22Some links I've collected in the past that describe this approach:
- https://css-tricks.com/creating-an-editable-textarea-that-su...
- https://github.com/WebCoder49/code-input
I believe https://grugnotes.com also does this for markdown.
Re: Show HN: OverType – A Markdown WYSIWYG editor that's just a textarea
#23For https://grack.com/demos/adventure/, I used a hidden for something similar. I wanted to take advantage of paste/selection and all the other goodies of text, but with fully-integrated styling.
Like you, I found that standard text input boxes were far more interesting than contentEditable because they're just so simple overall.
I think there's probably an interesting middle ground here where you render real markdown with the textarea effectively fully hidden (but still with focus), emulate the selection events of the rendered markup into the textarea, and basically get a beautiful editor with all the textarea solidness.
Re: Show HN: OverType – A Markdown WYSIWYG editor that's just a textarea
#24Re: Show HN: OverType – A Markdown WYSIWYG editor that's just a textarea
#25I noticed on the site the really cool animation you got has a 1px solid border on one of the overlays in firefox. Figure you might care since it's clearly supposed to be flashy.
Re: Show HN: OverType – A Markdown WYSIWYG editor that's just a textarea
#26Re: Show HN: OverType – A Markdown WYSIWYG editor that's just a textarea
#27Re: Show HN: OverType – A Markdown WYSIWYG editor that's just a textarea
#28> That's it. No npm. No build. No config. That's it, I am loving it.
If it doesn't have an NPM build, it isn't a serious project. Not using anything w/o a build.
Re: Show HN: OverType – A Markdown WYSIWYG editor that's just a textarea
#29The animation shows variable-pitch fonts, but the demo seems to be all the same fixed-pitch font for me. (On Firefox ESR and Chromium.)