I just finished reading the section on advanced text editing in browsers in Professional JavaScript for web developers Nicholas Zakas. It says that there are two ways to implement rich text editing:
- iframe with
designMode property set to on - or element with
contenteditable attribute
What I have done from this information is that both methods have so many contradictions between browsers that neither of them is really a reliable solution.
Checking the Google Doc sign, all I see is a bunch of nested div s.
So, I'm curious which Google method has been identified as the most suitable for implementing advanced text editing?
javascript dom
MK Safi
source share