Hello,
I've been looking for HTML editor for our CMS, and since FCKEditor seems to be the best of the free WYSIWYG editors available today, I've decided to integrate it in our system.
Unexpectedly for me a problem emerged when I've tried to connect FCKEditor. We use HTML editor as a popup window, and results being saved to the hidden field in the opener window. The problem is I can't get editor value on window close ('onunload' event).
oFCKeditor.Value holds initial value.
Also I haven't found any function to get the value.
How can I get the current editor value from JS? Please help...
I've been looking for HTML editor for our CMS, and since FCKEditor seems to be the best of the free WYSIWYG editors available today, I've decided to integrate it in our system.
Unexpectedly for me a problem emerged when I've tried to connect FCKEditor. We use HTML editor as a popup window, and results being saved to the hidden field in the opener window. The problem is I can't get editor value on window close ('onunload' event).
oFCKeditor.Value holds initial value.
Also I haven't found any function to get the value.
How can I get the current editor value from JS? Please help...
RE: Get editor value from javascript.
Check the post, https://sourceforge.net/forum/message.p ... id=3008312
But instead of using SetHtml() use GetHTML () eg.,
javascript: alert(this.FCKeditorAPI.__Instances['FCKeditor1'].GetHTML());
Make sure that the instance name ('FCKeditor1') matches the name you gave your control.