Extension talk:FCKeditor (by Mafs)/extension
Add topicAny user names refer to users of that site, who are not necessarily users of MediaWiki.org (even if they share the same username).
I think that user mafs broke this script. It seems wise to revert back to the may versions.
- No, mafs is one of the authors. He can't break the script. You should use "?action=edit" or "?action=raw" to get the new version. What he'd really destroyed it's presentation, but this can be added back. Maybe I'll do this later, cause I've already done it. The initioal variant of the script vas almost the same as you see it now. It was I who have changed it into readable form.
Without whitespace php barfs on this script, so in its current form it is broken.
I'm using this script on MediaWiki 1.8.2. Everything seems to be ok, except the image browsing portion. It just doesn't work. A popup window shows up, but then I get a javascript error right away. It's useless. Anyone know why this is happening?
Try it here: http://www.wikieasy.org/index.php?title=Talk:Test&action=edit
- You are using 1.8.2 which is not supported yet. Mafs 12:08, 25 November 2006 (UTC)
Parser error
[edit]I'm using the latest version (trunk) on 1.Dec.2006 of Mediawiki and the FckEditor (program + extension) and I get the following error:
Fatal error: Call to a member function unstripNoWiki() on a non-object in ..\includes\Parser.php on line 647
Does anyone know a solution?
FCK-Editor displayed twice (MediaWiki 1.9.3)
[edit]With this version of fckeditor.php, I had two editors shown when editing a page. After some debugging, I found out that the wfFCKeditorAddFCKScript function need to be changed:
Old:
$wgOut->addScript("<script type=\"text/javascript\"> function onLoadFCK () { var oFCKeditor = new FCKeditor('wpTextbox1') ; oFCKeditor.BasePath = \"$wgScriptPath/$wgFCKEditorDir/\" ; if (document.getElementById(\"wpTextbox1\")) {oFCKeditor.Height = \"$wgFCKEditorHeight\" ; oFCKeditor.ToolbarSet = \"$wgFCKEditorToolbarSet\" ; oFCKeditor.ReplaceTextarea() ; var oDiv=document.getElementById(\"toolbar\"); oDiv.style.cssText = 'display: none;'; }} addOnloadHook(onLoadFCK); </script>\n");
New:
$wgOut->addScript("<script type=\"text/javascript\"> function onLoadFCK () { var oFCKeditor = new FCKeditor('wpTextbox1') ; oFCKeditor.BasePath = \"$wgScriptPath/$wgFCKEditorDir/\" ; if (document.getElementById(\"wpTextbox1\")) {oFCKeditor.Height = \"$wgFCKEditorHeight\" ; oFCKeditor.ToolbarSet = \"$wgFCKEditorToolbarSet\" ; oFCKeditor.ReplaceTextarea() ; var oDiv=document.getElementById(\"toolbar\"); }} addOnloadHook(onLoadFCK); </script>\n");
This is what is deleted from the original. This is source of a javascript error, breaking the runOnLoadHook function of wikibits.js.
oDiv.style.cssText = 'display: none;';
Note that the above conversation may have been edited or added to since the transfer. If in doubt, check the edit history.
Version
[edit]Maybe change version in code to 0.7.4 2007 as stated in the mainpage.. --87.245.121.26 11:08, 9 July 2007 (UTC)