Version of FCKEditor: 2.6.4.1
Problem:
When I open the page that contains FCKEditor instance, I need to fetch the value of the editor on page load. The following javascript return undefined because the instance is not loaded within the iframe of the editor when its called:
window.onload = function(event) {
var oEditor = FCKeditorAPI.GetInstance('myEditor') ;
if (oEditor) {
var pageValue = oEditor.GetHTML();
}
}
How can I get the value of the editor when the page has loaded?
Problem:
When I open the page that contains FCKEditor instance, I need to fetch the value of the editor on page load. The following javascript return undefined because the instance is not loaded within the iframe of the editor when its called:
window.onload = function(event) {
var oEditor = FCKeditorAPI.GetInstance('myEditor') ;
if (oEditor) {
var pageValue = oEditor.GetHTML();
}
}
How can I get the value of the editor when the page has loaded?