hi,
i am using FCKEditor in my aspx page. I want to update the value of the editor by calling a javascript function. Is it can be possible?
Can any one help me about this.
Thank you!
i am using FCKEditor in my aspx page. I want to update the value of the editor by calling a javascript function. Is it can be possible?
Can any one help me about this.
Thank you!
RE: update fckeditor value through javascript
<script>
var oEditor = FCKeditorAPI.GetInstance('FCKeditor1');
var oContent = oEditor.EditorDocument.body;
var newContent = 'Hello';
oContent.innerHTML = newContent;
</script>
RE: update fckeditor value through javascript
<script type="text/javascript">
var oEditor = FCKeditorAPI.GetInstance('FCKeditor1');
var newContent = 'Hello';
oEditor.SetHTML( newContent );
</script>
RE: update fckeditor value through javascript
I tried it and it's working fine.
Now i change my requirement to - i want to add onkeyup functionallity for the text area. when i press any key the FCK editor value needs to be upadated automatically.
Is there any way to do this?
Please Help me.