Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: "Christoph M. Becker" Newsgroups: comp.lang.javascript Subject: Re: new line in a contentEditable div Date: Fri, 03 Oct 2014 19:32:15 +0200 Organization: solani.org Lines: 49 Message-ID: References: <4b3afe79c9bbea3371221c48e0b0690a346b72d8@news.nemoweb.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1412357524 13105 eJwFwYEBwCAIA7CXUGiBc2aV/09YAueiMggGBrOi0q/m5It32GXyLG58VhCPJ9HXTdwTo/4BE8sQug== (3 Oct 2014 17:32:04 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Fri, 3 Oct 2014 17:32:04 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 X-User-ID: eJwFwYEBgDAIA7CXGLRUzlGE/09YwsiTLSQTXO7v36J6xEGpDdY7Dq1wTB56zZdRIH386Qsa/BB6 In-Reply-To: Cancel-Lock: sha1:fbeFiewZSq+3kmEs66psGnWDqCM= X-NNTP-Posting-Host: eJwNysERACEIBLCWDoRdKMcT6L8EnXzjC4JDg8N8HjusXQXjHhSzMui/qLd5NCa4tEc/Sr4dFyHREM0= Xref: csiph.com comp.lang.javascript:25883 Evertjan. wrote: > "Christoph M. Becker" wrote on 03 okt 2014 in > comp.lang.javascript: > >> [1] > >> "Rich-text editing is initialized by setting the designMode property of >> a document to "On", such as the document inside an iframe. Once >> designMode has been set to "On", the document becomes a rich-text >> editing area and the user can type into it as if it were a textarea. The >> most basic keyboard commands such as copy and paste are available, all >> others need to be implemented by the website. >> >> Similarly, setting contentEditable to "true" allows you to make >> individual elements of a document editable." > > So "contentEditable" is only for the content of "individual elements", > and IMHO that is just plain text. I suggest that you read the first paragraph that you have quoted again, especially: | Once designMode has been set to "On", the document becomes a rich-text | editing area [...] Anyway, what is the content of div#foo (an individual element) in the following example:
blah
> Anyway, > you are just argumenting by authority, No, I'm arguing by (what comes closest to a) specification. > if something is designed to fly, > does not mean it actually can fly. So you are arguing that, for instance, doesn't allow rich-text editing? -- Christoph M. Becker