W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2012

[whatwg] Submitting contentEditable Content In A Form

From: Hugh Guiney <hugh.guiney@gmail.com>
Date: Fri, 7 Sep 2012 04:57:02 -0400
Message-ID: <CAEHyr+Z4SXT27hWsHa+T0hZiNyor=adOO90v9F+8-UcSNHQUvA@mail.gmail.com>
To: whatwg <whatwg@lists.whatwg.org>
I'm developing a CMS and would like to be able to submit user-edited
content back to the server, but at present, it's not possible to do
this without copying the contents of the edited element with
JavaScript into, say, a hidden form field. I think that there should
be some mechanism to associate contentEditable elements with
forms—maybe the combination of contentEditable="true" and the presence
of @name creates an implicit form control? The value sent to the
server could be equivalent to that element's innerHTML. Thoughts?
Received on Friday, 7 September 2012 08:57:48 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:45 UTC