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


Groups > comp.lang.javascript > #31780

Re: Seeking input for an idea

Newsgroups comp.lang.javascript
Date 2016-12-07 10:54 -0800
References <7baee6d6-1b49-49b2-9e34-349e4183be8d@googlegroups.com> <editor-20161207153627@ram.dialup.fu-berlin.de> <1630916.tdWV9SEqCh@PointedEars.de>
Message-ID <a2316067-bac7-4e28-950b-dc4ac30fe1da@googlegroups.com> (permalink)
Subject Re: Seeking input for an idea
From justaguy <lichunshen84@gmail.com>

Show all headers | View raw


On Wednesday, December 7, 2016 at 10:14:30 AM UTC-5, Thomas 'PointedEars' Lahn wrote:
> Stefan Ram wrote:
> 
> > justaguy <> writes:
> >>                           there's a need to allow insertion
> >>of a text node at any location of the page.
> > 
> >   You want an HTML editor in JavaScript?
> > 
> >   You can just license such a beast from
> >   someone I guess.
> > 
> >   If you want to write one yourself, you
> >   can study the source code of existing
> >   editors.
> > 
> >   A simple, yet not elegant, approach might
> >   be to convert an element containing the
> >   position to HTML source code, modify this,
> >   converted it back to an element and then
> >   replace the old element with the new one,
> 
>   document.body.contentEditable = true;
> 

I've created a text editor myself.  In this case I don't need one.  Interesting technique tho.

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


Thread

Seeking input for an idea justaguy <lichunshen84@gmail.com> - 2016-12-06 12:10 -0800
  Re: Seeking input for an idea Luuk <luuk@invalid.lan> - 2016-12-06 21:21 +0100
    Re: Seeking input for an idea justaguy <lichunshen84@gmail.com> - 2016-12-06 17:36 -0800
      Re: Seeking input for an idea "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-12-07 11:10 +0100
        Re: Seeking input for an idea justaguy <lichunshen84@gmail.com> - 2016-12-07 10:52 -0800
  Re: Seeking input for an idea Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-12-07 16:14 +0100
    Re: Seeking input for an idea justaguy <lichunshen84@gmail.com> - 2016-12-07 10:54 -0800
    Re: Seeking input for an idea justaguy <lichunshen84@gmail.com> - 2016-12-07 11:06 -0800

csiph-web