htmlArea

A directory of browser-based WYSIWYG editors

  MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN

Home: htmlArea 3 (beta): htmlArea 2 & 3 archive (read only): htmlArea v3.0 - Add-Ons:
Urgent -Help for insertHTML on load of page


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.

 


maheshvn
Novice

Dec 19, 2004, 11:55 PM

Post #1 of 2 (5254 views)
Shortcut
Urgent -Help for insertHTML on load of page Can't Post

i want to insert text on load of the page. How do I do that?

At present I have written this code in the core.html example - on load of the page.

config.insertHTML("hello")

i get an error saying that this._doc.selection is null or not an object


prism
New User

Dec 23, 2004, 12:57 AM

Post #2 of 2 (5209 views)
Shortcut
Re: [maheshvn] Urgent -Help for insertHTML on load of page [In reply to] Can't Post

If you want the textarea to be loaded with some value, then instead of calling any javascript function you can directly put the value in HTML textarea tag like

<textarea id="text-area-1" name="text1" style="width: 100%; height: 12em">value goes here</textarea>

After this when the generate function of HTMLArea is called this text is retained & the textarea is replaced with the HTMLArea.

Try this. Hope this helps

 
 
 


Search for (options)