Microsoft
Software
Hardware
Network
Question : CKEditor: How to update textarea using javascript?
I've been through the CKEditor docs and the EE area but still can't find a solution to what I believe is a very simple problem: I am using CKEditor on a textarea, but wish to be able to manually clear out the textarea with javascript when the user presses a 'clear this field' button.
I set up a javascript handler for the button click, but I can't seem to clear the field out.
In the older FCKEditor code I could just use code like this:
document.myform.artistbio.
value="";
CKEDITOR.updateContent("ar
tistbio");
But the updateContent() is not in CKEditor (or at least I am not invoking it correctly?)
How can I call the CKEditor to clear out this field from javascript?
Thanks experts!
Answer : CKEditor: How to update textarea using javascript?
Its very simple
CKEDITOR.instances.yourEdi
torId.setD
ata('html to update')
just replace yourEditorId with your ckeditor ID, then call setData method and pass html you wish to replace with in it.
Random Solutions
In Symantec Backup Exec 12, how do I change the backup destination (that is defined in my current backup jobs) from being a tape to being an external hard drive?
Installing additional files with my installation
Need help with access report form
Removing numbers after underscore
MS Office 2007 & 2010: Best practices for implementing centralized management of default templates?
Locked out accounts
Site to site with Cisco ASA 5505
Need to speed up authentication of MS SQL Server database records using VB5
Dreamweaver PHP MySQL Session Variables
sa account