Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Are all these editors based on contenteditable?

https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Edit...




The prosemirror based ones are. I suspect the other ones are as well.


You're right. Slate, Quill.js and ProseMirror-based use contenteditable. Hacking browser for custom cursor (similarly as Zoho Docs does [0]) is quite hacky and often leads to more problems than advantages it provides.

[0]: I suggest you to take a look in Chrome debugger how it works. Quite funny piece of code. It is written in jQuery + vanilla JS, so it will be very easy to spot the whole algorithm.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: