Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #31778
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Seeking input for an idea |
| Date | 2016-12-07 16:14 +0100 |
| Organization | PointedEars Software (PES) |
| Message-ID | <1630916.tdWV9SEqCh@PointedEars.de> (permalink) |
| References | <7baee6d6-1b49-49b2-9e34-349e4183be8d@googlegroups.com> <editor-20161207153627@ram.dialup.fu-berlin.de> |
Stefan Ram wrote: > justaguy <lichunshen84@gmail.com> 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; -- PointedEars FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix> <https://github.com/PointedEars> | <http://PointedEars.de/wsvn/> Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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