Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Handling RichText Area with Javascript

New Here ,
Jan 07, 2009 Jan 07, 2009
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!
440
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 03, 2009 Nov 03, 2009
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources