I just finished reading the section about rich text editing in browsers in Professional JavaScript for Web Developers by Nicholas Zakas. It says there are two ways to go about implementing rich text editing:
- iframe with
designMode
property set toon
- or an element with
contenteditable
attribute
What I concluded from that information is that both techniques have so much cross-browser inconsistencies that neither one is really a reliable solution.
Inspecting Google Doc's mark up, all I see is a bunch of nested div
s.
So, I'm curious, what technique has Google determined to be the most suitable for implementing rich text editing?