The forum operates in read-only mode. Please head to StackOverflow for support.
I switched to fckeditor.original.html to be able to debug.It turned out that renaming editor\js directory lead to missing files on load!Exploring the sources lead to the following solution.I had to modify _source\internals\fck_onload.js: if (0) { FCKScriptLoader.AddScript( 'js/fckeditorcode_ie_1.js' ) ; } else { FCKScriptLoader.AddScript( '_source/internals/fckdebug.js' ) ; FCKScriptLoader.AddScript( '_source/internals/fcktools.js' ) ; FCKScriptLoader.AddScript( '_source/internals/fcktools_ie.js' ) ; FCKScriptLoader.AddScript( '_source/internals/fcklanguagemanager.js' ) ; FCKScriptLoader.AddScript( '_source/classes/fckevents.js' ) ; FCKScriptLoader.AddScript( '_source/internals/fckxhtml.js' ) ; FCKScriptLoader.AddScript( '_source/internals/fck_1.js' ) ; FCKScriptLoader.AddScript( '_source/internals/fck_1_ie.js' ) ; }and _source\internals\fck_1.js: if (0) { FCKScriptLoader.AddScript( 'js/fckeditorcode_ie_2.js' ) ; } else { FCKScriptLoader.AddScript( '_source/internals/fck_2.js' ) ; FCKScriptLoader.AddScript( '_source/internals/fck_2_ie.js' ) ; FCKScriptLoader.AddScript( '_source/internals/fckselection.js' ) ; FCKScriptLoader.AddScript( '_source/internals/fckselection_ie.js' ) ; FCKScriptLoader.AddScript( '_source/classes/fcknamedcommand.js' ) ; FCKScriptLoader.AddScript( '_source/classes/fck_othercommands.js' ) ; FCKScriptLoader.AddScript( '_source/internals/fckcommands.js' ) ; FCKScriptLoader.AddScript( '_source/classes/fcktoolbar.js' ) ; FCKScriptLoader.AddScript( '_source/classes/fcktoolbarbutton.js' ) ; FCKScriptLoader.AddScript( '_source/classes/fcktoolbarcombo.js' ) ; FCKScriptLoader.AddScript( '_source/internals/fcktoolbaritems.js' ) ; FCKScriptLoader.AddScript( '_source/internals/fcktoolbarset.js' ) ; FCKScriptLoader.AddScript( '_source/internals/fckdialog.js' ) ; FCKScriptLoader.AddScript( '_source/internals/fckdialog_ie.js' ) ; FCKScriptLoader.AddScript( '_source/classes/fckcontextmenuitem.js' ) ; FCKScriptLoader.AddScript( '_source/classes/fckcontextmenuseparator.js' ) ; FCKScriptLoader.AddScript( '_source/classes/fckcontextmenugroup.js' ) ; FCKScriptLoader.AddScript( '_source/internals/fckcontextmenu.js' ) ; FCKScriptLoader.AddScript( '_source/internals/fckcontextmenu_ie.js' ) ; FCKScriptLoader.AddScript( '_source/internals/fck_last.js' ) ; }It took me about an hour to reproduce correct loading order...I suppose these files supplied in distribution were processed by @Packager before.It would be nice to supply the original versions too.BTW, is Packager open-source? Can it be downloaded?It could help greatly for full-speed testing of _source modifications.Thanks in advance.
A bug in JSP integration pack
To fix this, lines
if (!toolbarSet.equals(""))
configStr+="&Toolbar=" + toolbarSet;
should be moved from createConfigHTML() to createIFrameHTML().
Open source?
I switched to fckeditor.original.html to be able to debug.
It turned out that renaming editor\js directory lead to missing files on load!
Exploring the sources lead to the following solution.
I had to modify _source\internals\fck_onload.js:
if (0) {
FCKScriptLoader.AddScript( 'js/fckeditorcode_ie_1.js' ) ;
} else {
FCKScriptLoader.AddScript( '_source/internals/fckdebug.js' ) ;
FCKScriptLoader.AddScript( '_source/internals/fcktools.js' ) ;
FCKScriptLoader.AddScript( '_source/internals/fcktools_ie.js' ) ;
FCKScriptLoader.AddScript( '_source/internals/fcklanguagemanager.js' ) ;
FCKScriptLoader.AddScript( '_source/classes/fckevents.js' ) ;
FCKScriptLoader.AddScript( '_source/internals/fckxhtml.js' ) ;
FCKScriptLoader.AddScript( '_source/internals/fck_1.js' ) ;
FCKScriptLoader.AddScript( '_source/internals/fck_1_ie.js' ) ;
}
and _source\internals\fck_1.js:
if (0) {
FCKScriptLoader.AddScript( 'js/fckeditorcode_ie_2.js' ) ;
} else {
FCKScriptLoader.AddScript( '_source/internals/fck_2.js' ) ;
FCKScriptLoader.AddScript( '_source/internals/fck_2_ie.js' ) ;
FCKScriptLoader.AddScript( '_source/internals/fckselection.js' ) ;
FCKScriptLoader.AddScript( '_source/internals/fckselection_ie.js' ) ;
FCKScriptLoader.AddScript( '_source/classes/fcknamedcommand.js' ) ;
FCKScriptLoader.AddScript( '_source/classes/fck_othercommands.js' ) ;
FCKScriptLoader.AddScript( '_source/internals/fckcommands.js' ) ;
FCKScriptLoader.AddScript( '_source/classes/fcktoolbar.js' ) ;
FCKScriptLoader.AddScript( '_source/classes/fcktoolbarbutton.js' ) ;
FCKScriptLoader.AddScript( '_source/classes/fcktoolbarcombo.js' ) ;
FCKScriptLoader.AddScript( '_source/internals/fcktoolbaritems.js' ) ;
FCKScriptLoader.AddScript( '_source/internals/fcktoolbarset.js' ) ;
FCKScriptLoader.AddScript( '_source/internals/fckdialog.js' ) ;
FCKScriptLoader.AddScript( '_source/internals/fckdialog_ie.js' ) ;
FCKScriptLoader.AddScript( '_source/classes/fckcontextmenuitem.js' ) ;
FCKScriptLoader.AddScript( '_source/classes/fckcontextmenuseparator.js' ) ;
FCKScriptLoader.AddScript( '_source/classes/fckcontextmenugroup.js' ) ;
FCKScriptLoader.AddScript( '_source/internals/fckcontextmenu.js' ) ;
FCKScriptLoader.AddScript( '_source/internals/fckcontextmenu_ie.js' ) ;
FCKScriptLoader.AddScript( '_source/internals/fck_last.js' ) ;
}
It took me about an hour to reproduce correct loading order...
I suppose these files supplied in distribution were processed by @Packager before.
It would be nice to supply the original versions too.
BTW, is Packager open-source? Can it be downloaded?
It could help greatly for full-speed testing of _source modifications.
Thanks in advance.
RE: Open source?
Search for 'package' or some such would probably bring up the thread. Something about toing 'c:\type blah.js > wee.js' or similar.
That's assuming it's the same for this version, as the thread I'm talking 'bout was for 1.6 or whatever.
May the Force be wit ya!