TinyFCK - TinyMCE with FCKEditor file manager

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.

SPREAD THE WORD: DIGG THIS PAGE

Details

TinyFCK package contains:

  • a TinyMCE release (absolutely not patched, this is the original TinyMCE)
  • a patched version of FCKEditor file manager/uploader
  • an example documenting configuration

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.

Screenshots

Linking a text Inserting an image Inserting flash files

Download

TinyFCK 0.13 is updated with TinyMCE 2.0.6.1 and FCKEditor 2.2’s file manager.

Support - Forum - Bug report - Feature request

Please post everything to the TinyMCE and FCKeditor authors, remember we only did the integration and nothig more.

The integration code: fileBrowserCallBack

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.

TinyMCE compressor and spellchecker

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

Why on this site?

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.

License

TinyFCK is released under GNU LGPL license.

Authors

Copyrights are holded by the authors of FCKEditor and TinyMCE, at the same way of support, what we’ve done is only integrate the two projects.

The idea of TinyFCK and the integration is developed by CreaLabs.

 
tinyfck.txt · Last modified: 2007/02/19 09:02 by p4a
 
Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki