Skip to main content
Participant
January 7, 2009
Question

Handling RichText Area with Javascript

  • January 7, 2009
  • 1 reply
  • 475 views
Hello guys, I'm trying to insert text via javascript into a rich cftextarea but it doesn't work since it's not really a textarea but an iframe.

The following code alerts "Frank" with javascript at runtime

<cftextarea richtext="true" name="richTop" id="richTop">Frank</cftextarea>

but after writing new text in it and calling the value of "richTop", still returns Frank (Getting the field by name or ID).

Does anyone know how to manipulate rich text areas with js? I also noticed the iframes have ID's but they are created at runtime and change all the time.

thanks!
    This topic has been closed for replies.

    1 reply

    Known Participant
    November 3, 2009

    Did you ever get your solution to this issue?

    I am looking to have a javascript insert text into the richtext area as well.

    Dave