Hello,
What has changed!!!
1) The save button throws a JS error that points to "blahblah/fckeditor/editor/fckeditor.html?InstanceName=blah&Toolbar=blah"
1.5) If I replace fckeditor.html w/ the 2.1 version, the save icon in the toolbar calls the form target as it should, but NOTHING is saved.
2) With the 2.4.2 fckeditor.html, if I use submit button on bottom of page instead of save icon in the toolbar, the form target is called like it should be but only one of my two editor regions is saved with the new data. The other region seems to get saved but with the old/original data.
3) Reverting all files back to 2.1 fixes these saving problems.
What the... This is rather rediculous to change the way things work when people build custom editor pages and save pages to deal with this stuff.
I am hoping there is a simple explaination or way to fix this. Any help is appreciated.
Mike
What has changed!!!
1) The save button throws a JS error that points to "blahblah/fckeditor/editor/fckeditor.html?InstanceName=blah&Toolbar=blah"
1.5) If I replace fckeditor.html w/ the 2.1 version, the save icon in the toolbar calls the form target as it should, but NOTHING is saved.
2) With the 2.4.2 fckeditor.html, if I use submit button on bottom of page instead of save icon in the toolbar, the form target is called like it should be but only one of my two editor regions is saved with the new data. The other region seems to get saved but with the old/original data.
3) Reverting all files back to 2.1 fixes these saving problems.
What the... This is rather rediculous to change the way things work when people build custom editor pages and save pages to deal with this stuff.
I am hoping there is a simple explaination or way to fix this. Any help is appreciated.
Mike
RE: Upgrade from 2.1 to 2.4.2 broke saving...HELP
[code snip]
<BODY topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginheight="0">
<h1>
<b><font face="Arial" size="5">Domain.com<br>
</font><font face="Arial" size="3">Online Editor</font></b></h1>
<hr />
<div id="xToolbar"></div>
<form action="postdata.asp" method="post" target="_blank">
<!--### BEGIN LEFT COLUMN EDIT ###-->
<script type="text/javascript">
<!--
var oFCKeditor = new FCKeditor( 'SpotL.htm' ) ;
oFCKeditor.Config["CustomConfigurationsPath"] = "/<%=Session("dir")%>/edit/BaseHref.js" ;
oFCKeditor.BasePath = "/fckeditor/" ;
oFCKeditor.Height = 960 ;
oFCKeditor.Width = "100%" ;
oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:xToolbar' ;
oFCKeditor.Value = '<%= f1 %>' ;
oFCKeditor.Create() ;
//-->
</script>
<!--### END LEFT COLUMN EDIT ###-->
[more code snip]
<!--### BEGIN RIGHT COLUMN EDIT ###-->
<script type="text/javascript">
<!--
oFCKeditor = new FCKeditor( 'SpotR.htm' ) ;
oFCKeditor.Config["CustomConfigurationsPath"] = "/<%=Session("dir")%>/edit/BaseHref.js" ;
oFCKeditor.BasePath = "/fckeditor/" ;
oFCKeditor.Height = 610 ;
oFCKeditor.Width = "100%" ;
oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:xToolbar' ;
oFCKeditor.Value = '<%= f2 %>' ;
oFCKeditor.Create() ;
//-->
</script>
<!--### END RIGHT COLUMN EDIT ###--->
[more code snip]
<input type="submit" value="Submit" />
</form>
My postdata.asp page is doing its job correctly, but it is not receiving the correct data for the 2nd region. It is receiving the old/original data. Using the sampleposteddata.asp as the target indicates the same problem. My region/field names are correct, so it is seeing both regions...just not updating the 2nd region.
And of course I still have the problem of the save button in the control panel not working the way it use to.
Thanks,
Mike
RE: Upgrade from 2.1 to 2.4.2 broke saving...HELP
So I renamed my FCK directories (one folder for 2.1 one for 2.42) to enable the 2.42 version again and my problem seems go have disappeared. I have no idea what was going on before, but things seem to work now.
Very strange. Maybe a javascript hickup on the client end?
Mike
RE: Upgrade from 2.1 to 2.4.2 broke saving...HELP
Can someone tell me which file I should be looking at for this error? I do not believe fckeditor.html is actually causing the error, but rather a JS script that maybe fckeditor.html is loading.
My current theory is that there is something slightly off w/ the fckeditorcode_ie.js file, but I do not know for sure.
And the most irritating part of this whole problem is that sometimes it just goes away.
I would love some input from the great folks behind FCK.
Thank you for your time.
Mike
RE: Upgrade from 2.1 to 2.4.2 broke saving...
hmm no idea, IE is very scarce in its javascript error report. Strange that you say it seems to be working sometimes, try disabling your cache: http://www.microsoft.com/downloads/deta ... laylang=en
I'm not sure what your desired functionality is, but perhaps my ajaxPost plugin suits your need:
personal page and demo for the plugin: http://www.saulmade.nl/FCKeditor/FCKPlugins.php
plugin and download page at sourceforge: http://sourceforge.net/tracker/index.ph ... tid=737639
forumThread: http://sourceforge.net/forum/forum.php? ... _id=257179
RE: Upgrade from 2.1 to 2.4.2 broke saving...HELP
Ok...the problem is back and it is intermitent with IE only. WTF.
I get a JS error when trying to save with the toolbar save button:
Error: Invalid Argument
Code: 0
URL: http://domain.com/fckeditor/editor/fcke ... ar=Default
My form action has a target to open a new window, and no new window is opened when I cluck the toolbar save button. It just throws the JS error.
When I use a regular submit button instead of the toolbar save button, a new window does open and show our save screen, but the same JS error is thrown on the parent window and only one of my two editor fields is saved.
Although this problem occurs often, it is intermitent and not shown on all of our editors.
Someone PLEASE give me a clue as to what is wrong here. PLEASE!
Thank you.
Mike
RE: Upgrade from 2.1 to 2.4.2 broke saving...
<p><font size="2"><em><font face="Arial">Some text here</font></em><br /><hr />
It seems to be the final <br/> that causes the problem...without it the editor works and corrects missing end tags.
Any insight would be really appreciated.
RE: Upgrade from 2.1 to 2.4.2 broke saving...HELP
Within the file fckeditorcode_ie.js in line 35, I commented the part between character 516 and 632:
case 1:if (C.nodeName.toUpperCase()=='BR'&&(B||C.getAttribute('type',2)=='_moz')){A.removeChild(C);continue;};break;
The method call blaming an invalid argument (and thus causing the IE to raise the script error) is the "A.removeChild(C);" where C.nodeName is the BR that you mentioned. With this code block commented, the editor works fine for me, but certainly there was a reason for that method call so now a problem might occur somewhere else in the script...
Does anybody have an idea what that part of the script does / should do?
Regards, Martin
RE: Upgrade from 2.1 to 2.4.2 broke saving...
RE: Upgrade from 2.1 to 2.4.2 broke saving...