Advanced HTML Editor Support Product Page
This topic is locked
This topic was archived
Javascript Access to data
Asked 19 Mar 2004 13:27:27
1
has this question
19 Mar 2004 13:27:27 Tom Cowle posted:
I want to be able to dynamically alter the value of the HTML editor, eg textfield.value = textfield.value + 'foo' as far as I can tell I would have to do this and simultaneously alter the actual HTML displayed by in the editor, how do I access this? I presume it uses innerHTML? ...
Replies
Replied 22 Mar 2004 11:20:17
22 Mar 2004 11:20:17 Patrick Woldberg replied:
You can do it with dmxedit_setHTML('textfield', dmxedit_getHTML('textfield') + 'foo');
dmxedit_getHTML(textarea) gets the current html content of the editor
dmxedit_setHTML(textarea, html) inserts new HTML into the editor
--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
dmxedit_getHTML(textarea) gets the current html content of the editor
dmxedit_setHTML(textarea, html) inserts new HTML into the editor
--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
Replied 22 Mar 2004 14:17:32
22 Mar 2004 14:17:32 Tom Cowle replied:
Thanks <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Replied 25 Mar 2004 17:08:49
25 Mar 2004 17:08:49 George Petrov replied:
Just made a FAQ about this:
www.dmxzone.com/go?6450
Greetings,
george
--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFocus.nl
--------------------------------------------------
www.dmxzone.com/go?6450
Greetings,
george
--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFocus.nl
--------------------------------------------------

