We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

TinyFCK (Tiny MCE + FCK image/file uploader)

Development and Programming

ropeadope's avatar
ropeadope
98 posts
about 17 years ago
ropeadope's avatar ropeadope

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)

       
Tyssen's avatar
Tyssen
756 posts
about 17 years ago
Tyssen's avatar Tyssen

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.

       
Tyssen's avatar
Tyssen
756 posts
about 17 years ago
Tyssen's avatar Tyssen

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)?

       
gridonic's avatar
gridonic
231 posts
about 17 years ago
gridonic's avatar gridonic

In my opinion, the TinyMCE editor in combination with their File + Image Manager is the best and far most comfortable solution available for customers. Just a thought, although I’d prefer something open source 😊

       
ropeadope's avatar
ropeadope
98 posts
about 17 years ago
ropeadope's avatar ropeadope

wow that was quick. i’ll try this out today

       
IJsbeer's avatar
IJsbeer
55 posts
16 years ago
IJsbeer's avatar IJsbeer

This worked excellent in LG_tinyMCE 1.2. Now I installed LG_tinyMCE 1.3. The code in 1.3 changed, so now I miss the line at 696 (tinyMCE.init({ '.$settings_parts.' });).

I’m not good with the code, so does anyone know where to place the fck-code to work together with lgTinyMCE

       
Tyssen's avatar
Tyssen
756 posts
16 years ago
Tyssen's avatar Tyssen

It’s at line 1024 of 1.3.1.

       
Ben Parizek's avatar
Ben Parizek
128 posts
16 years ago
Ben Parizek's avatar Ben Parizek

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?

       
Ben Parizek's avatar
Ben Parizek
128 posts
16 years ago
Ben Parizek's avatar Ben Parizek

Well, I solved my issue. Missing one of those darn commas again. Remember your commas!

file_browser_callback : “fileBrowserCallBack”,
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.