htmlArea

A directory of browser-based WYSIWYG editors

  MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN

Home: htmlArea 2: htmlArea 2 & 3 archive (read only): htmlArea v2.0:
retriving value problem!!!


The htmlArea 2 & 3 editors have been discontinued.

We've made these forums available as a read-only reference and knowledge-base for people using or developing editors based on htmlArea 2 or 3.

Anyone who is interested in taking over version 2 or 3 is free to do so. All we ask is that you choose a new name that doesn't have "htmlarea" in it to avoid confusion with this site. We'll even give you a link in the directory to make it easier for people to find you. If you are developing or hosting an htmlArea based-editor under a new name, please submit it to our directory.

 


heman
Novice

Dec 2, 2004, 9:28 AM

Post #1 of 3 (1574 views)
Shortcut
retriving value problem!!! Can't Post

Hi i have two conserns please help me

1. on body load my function replace the value

from one htmlarea textarea to another

function exchange() {

document.frm1.temp.value = document.frm1.txtExpBody.value;

}

the same think if i call the function inside javascript it does not replace but if i put in aleart it shows

2. and how to make the function run in keyup events

thx


Luis
Veteran

Dec 2, 2004, 11:51 AM

Post #2 of 3 (1564 views)
Shortcut
Re: [heman] retriving value problem!!! [In reply to] Can't Post

Hi heman:

Try

document.frm1.temp.value = editor_getHTML('txtExpBody')

To apply the function onkeyup, This should work:

Search for this line in editor.js:

editdoc.onkeyup = function() { editor_event(objname); }

and change it to:

editdoc.onkeyup = function() {
editor_event(objname);
setTimeout(
document.all.temp.value = editor_getHTML(objname),100);
}

It's not tested but it should work. If iot doesn't let me know.

Greetings


Don't give up!!
http://webstationone.com/test/htmlarea


heman
Novice

Dec 3, 2004, 2:37 PM

Post #3 of 3 (1544 views)
Shortcut
Re: [Luis] retriving value problem!!! [In reply to] Can't Post

How can we set right indent in textarea ?

Thanks for the replay,

the code you provided helped me, but i writing a charcter return function which does after 30 char it has to start in next line, but when i reading one by one it takes long time on key event when user types more than 100 chars

so i am thinking if i know how to set the right indent like textarea that will be good

thx

 
 
 


Search for (options)