Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #25883

Re: new line in a contentEditable div

From "Christoph M. Becker" <cmbecker69@arcor.de>
Newsgroups comp.lang.javascript
Subject Re: new line in a contentEditable div
Date 2014-10-03 19:32 +0200
Organization solani.org
Message-ID <m0mmik$cph$1@solani.org> (permalink)
References (3 earlier) <XnsA3BBA6B09F610eejj99@194.109.133.133> <f8eb75a99cf32a4f76c97abbc34285dadf024206@news.nemoweb.net> <XnsA3BBBBDC1124Eeejj99@194.109.133.133> <m0mkb7$4i0$1@solani.org> <XnsA3BBC27B83CFCeejj99@194.109.133.133>

Show all headers | View raw


Evertjan. wrote:

> "Christoph M. Becker" <cmbecker69@arcor.de> wrote on 03 okt 2014 in 
> comp.lang.javascript:
> 
>> [1] <https://developer.mozilla.org/en/docs/Rich-Text_Editing_in_Mozilla>
> 
>> "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:

  <div id="foo">
    <div id="bar">
      blah
    </div>
  </div>

> 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,
<http://www.tinymce.com/tryit/basic.php> doesn't allow rich-text editing?

-- 
Christoph M. Becker

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

new line in a contentEditable div Julien Arlandis <julien.arlandis@laposte.net> - 2014-10-03 11:33 +0000
  Re: new line in a contentEditable div JJ <jj4public@vfemail.net> - 2014-10-03 19:46 +0700
    Re: new line in a contentEditable div Julien Arlandis <julien.arlandis@laposte.net> - 2014-10-03 13:13 +0000
      Re: new line in a contentEditable div JJ <jj4public@vfemail.net> - 2014-10-04 09:29 +0700
        Re: new line in a contentEditable div Julien Arlandis <julien.arlandis@laposte.net> - 2014-10-04 06:09 +0000
          Re: new line in a contentEditable div "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-10-04 08:47 +0200
          Re: new line in a contentEditable div JJ <jj4public@vfemail.net> - 2014-10-04 21:34 +0700
            Re: new line in a contentEditable div Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-10-22 20:09 +0200
  Re: new line in a contentEditable div "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-10-03 15:00 +0200
    Re: new line in a contentEditable div Julien Arlandis <julien.arlandis@laposte.net> - 2014-10-03 13:18 +0000
    Re: new line in a contentEditable div "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-10-03 16:23 +0200
      Re: new line in a contentEditable div Julien Arlandis <julien.arlandis@laposte.net> - 2014-10-03 15:16 +0000
        Re: new line in a contentEditable div "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-10-03 18:28 +0200
          Re: new line in a contentEditable div "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-10-03 18:54 +0200
            Re: new line in a contentEditable div "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-10-03 19:07 +0200
              Re: new line in a contentEditable div "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-10-03 19:32 +0200
  Re: new line in a contentEditable div "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-10-03 16:21 +0300

csiph-web