hey all,
im new to the FCKEditor using javascript, i've used this before in asp.net and works great, but the current application im working on i would like to implement the javascript integration method. so that being said, my question is. I am able to get the editor onto the webpage and working but how to i capture the value say on a click event in a asp.net button or even using onclick to javascript? my end result is to get this value of the editor into a variable so that i may do whatever i want lets say to display the result into a label below.
any help would be awesome, thanks. Shane
im new to the FCKEditor using javascript, i've used this before in asp.net and works great, but the current application im working on i would like to implement the javascript integration method. so that being said, my question is. I am able to get the editor onto the webpage and working but how to i capture the value say on a click event in a asp.net button or even using onclick to javascript? my end result is to get this value of the editor into a variable so that i may do whatever i want lets say to display the result into a label below.
any help would be awesome, thanks. Shane
Re: FCKEditor - Javascript
function getUpdatedText(){
var objFckEditor = FCKeditorAPI.GetInstance('editorInstance');
var updatedText = objFckEditor.EditorDocument.body.innerHTML;
alert(updatedText );
}
Hope with this code ur problem will over.
Re: FCKEditor - Javascript