Greetings,
I am using the FCK Editor V 2.3.1 Build 1062
Am facing a serious problem and do not know what is the workaround
I have loaded the editor with the javascript code in my aspx page
editor = new FCKeditor('FCKeditor1');
editor.BasePath = "/admin/components/FCKeditor/";
editor.Create();
AND then I have used the FCKEditorAPI methods in js file
editor = FCKeditorAPI.GetInstance('FCKeditor1');
Now I am able to use the “editor” to SetHTML and GetXHTML methods
What happened is when in the WYSIWYG mode I change anything and fire the GetXHTML I get the right HTML
But when I change anything from the SOURCE-CODE mode and fire the GetXHTML Method I do not get the change that is done but the old HTML code (the code before I have edited)
I also tried to fire the editor.SwitchEditMode() function and also editor.Commands.GetCommand('Source').Execute(); but it only switches to the WYSIWYG mode but doesn’t seem to save the change means still I get the old HTML code by firing the GetXHTML method.
Please help me.
I am using the FCK Editor V 2.3.1 Build 1062
Am facing a serious problem and do not know what is the workaround
I have loaded the editor with the javascript code in my aspx page
editor = new FCKeditor('FCKeditor1');
editor.BasePath = "/admin/components/FCKeditor/";
editor.Create();
AND then I have used the FCKEditorAPI methods in js file
editor = FCKeditorAPI.GetInstance('FCKeditor1');
Now I am able to use the “editor” to SetHTML and GetXHTML methods
What happened is when in the WYSIWYG mode I change anything and fire the GetXHTML I get the right HTML
But when I change anything from the SOURCE-CODE mode and fire the GetXHTML Method I do not get the change that is done but the old HTML code (the code before I have edited)
I also tried to fire the editor.SwitchEditMode() function and also editor.Commands.GetCommand('Source').Execute(); but it only switches to the WYSIWYG mode but doesn’t seem to save the change means still I get the old HTML code by firing the GetXHTML method.
Please help me.