There are two big open source rich text editors:
Some people prefer the first, some other the second, but there’s a problem for who likes to use TinyMCE: it lacks of a free file manager/uploader.
What we actually need is to have a TinyMCE installation with a free file manager/uploader, thus we take it from FCKEditor.
This is TinyFCK: a TinyMCE with the FCKEditor’s file manager/uploader, nothing less, nothing more.
TinyFCK package contains:
Upload connectors are disabled by default for security reasons, look at the code of every connector to enable it. Connectors are in filemanager/connectors directory.
TinyFCK 0.13 is updated with TinyMCE 2.0.6.1 and FCKEditor 2.2’s file manager.
Please post everything to the TinyMCE and FCKeditor authors, remember we only did the integration and nothig more.
You can find this code in the example included in the package, anyway for a better documentation here you have the details.
Add this function to the javascript code where you call TinyMCE:
function fileBrowserCallBack(field_name, url, type, win) { var connector = "../../filemanager/browser.html?Connector=connectors/php/connector.php"; var enableAutoTypeSelection = true; var cType; tinyfck_field = field_name; tinyfck = win; switch (type) { case "image": cType = "Image"; break; case "flash": cType = "Flash"; break; case "file": cType = "File"; break; } if (enableAutoTypeSelection && cType) { connector += "&Type=" + cType; } window.open(connector, "tinyfck", "modal,width=600,height=400"); }
From 0.4 the upload path is not passed via GET, we’re working with a standard FCK’s file manager (so we can have all languages support for connectors) but you’ll have to enable and configure your connector when you’ll install TinyFCK.
Because TinyFCK contains a TinyMCE without patches, you can use TinyMCE compressor and spellchecker if you want. Find them and download at: http://tinymce.moxiecode.com/download.php
Maybe you’re asking yourself why this project is hosted within “PHP For Applications” website, the answer is that this project is born to fit the needs of P4A open source PHP framework, thus the most correct place for TinyFCK is here.
TinyFCK is released under GNU LGPL license.