so i’ve been strugglign w/ the whole tiny MCE vs. FCK editor debate and stumbled across TinyFCK. Its basically the tiny mce core editor bundled with FCK’s built in image and file uploader.
I am thinking this may be a legit and FREE alternative to iBrowser (which looks like a pos) and the MC image uploader (~$75).
I am not at all a back end developer so I’m wondering what it would take to use this combo app w/ Leevi’s TinyMCe extension. any thoughts?
some more .(JavaScript must be enabled to view this email address)
I’ve just done this. Open up ext.lg_tinymce.php and find this line (696):
tinyMCE.init({'.$settings_parts.'});
Copy the code from the TinyFCK example below this so what you end up with is:
[removed]
//<![CDATA[
tinyMCE.init({'.$settings_parts.'});
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");
}
//]]>
[removed]';
Then open up /filemanager/connectors/php/config.php and fill in the paths to your image folder as described in this wiki article.
And finally, in your LG TinyMCE extension settings, add in:
file_browser_callback : "fileBrowserCallBack"
And that should be it.
Actually, I’ve got another question about this. If you set:
$Config['UserFilesPath'] = '/images/uploads/';
When you launch the image or file manager for the first time, it displays an empty directory and after you upload new files, it creates new directories - /Images and /Files inside of /images/uploads/
How do you get it to display the contents of /images/uploads/ without creating new directories (ie, like Moxiecode’s filemanager plugin does)?
I got TinyMCE working, and even had TinyFCK working for a couple days, but now TinyFCK has stopped working, and when I try to get it to work it takes out TinyMCE. Perhaps I added another extension or something that is blocking it somehow. The only think I can seen to figure out is that when I add file_browser_callback : “fileBrowserCallBack” to the LG TinyMCE extension settings TInyMCE stops even showing up. When I remove file_browser_callback from the settings TinyMCE comes back.
Anybody more experienced than me know where I might want to look to solve this issue?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.