1 of 2
1
WYSIWYG Progress Light
Posted: 05 August 2007 05:08 AM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  313
Joined  05-26-2004

For those of us who have customers who freak out when confronted with html formatting of postings, and who have therefore, in the name of customer service struggled with the likes of tinyMCE and FCKEditor, there is a small amount of relief.

Probably the most frustrating part of the tinyMCE exercise is making sense of the plug-ins, especially image/file uploads and linking. iBrowser and FileManager work, but only up to a point, and then not always on all browsers. Safari is especially problematic.

I have just finished implementing an AJAX file manager which also integrates with FCKEditor and tinyMCE - it’s called (strangely enough) “Ajax File Manager.” The integration instructions could be a lot clearer, but I managed by reverse engineering the demo to suit my needs. And what a relief it is after iBrowser an co.

So, if you are interested, visit phpletter.com and see for yourself.

For one vital bit of help, join their forum and look at this entry.

When integrated with tinyMCE, the plug-in actually adds itself to the native tinyMCE plug-ins for links and images, leaving the tinyMCE functionality intact but adding the Ajax File Manager functionality to it by means of a small launching button - very nice, but you need to know this.

I have appended my versions of the tinyMCE settings and the Ajax FileManager base-config file, in case they help.

File Attachments
tinymcesettings.txt  (File Size: 3KB - Downloads: 441)
configbasephp.txt  (File Size: 6KB - Downloads: 433)
 Signature 

...for there is no way to reduce a hunter to economic dependence and make him hunt for you - Albert Jay Nock ~ “Our Enemy the State”

Profile
 
 
Posted: 05 August 2007 07:38 AM   [ Ignore ]   [ # 1 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1463
Joined  09-16-2004

Looks very nice, thanks for posting that here. Will definitely try that with the next client who freaks out when I tell him there’s this little thing called Markdown smile
Cheers!

 Signature 

Peace, e-man.
stookstudio.com, websites built with care and web standards. LinkedIn profile

Profile
 
 
Posted: 07 August 2007 12:44 PM   [ Ignore ]   [ # 2 ]  
Grad Student
Rank
Total Posts:  39
Joined  06-03-2006

Very good John, works well.. thank you very much!

Profile
 
 
Posted: 28 August 2007 12:42 AM   [ Ignore ]   [ # 3 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  254
Joined  03-23-2006

I did this some 3 month ago and documented the setup, including a slight change to the TinyMCE plugin so as the AJAX file manager js calls can be entered inside the EE CP and the TinyMCE can be toggled at will to show the HTML.


So to save newcomers a few minutes (dare I say hours in my case ;-( ) :
Google Document

The current customers love it, wish I had the time (or skills) to write the EEplugin to replace the current “upload File” to use this…...

Profile
 
 
Posted: 28 August 2007 07:19 AM   [ Ignore ]   [ # 4 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1463
Joined  09-16-2004

I continue to be amazed by the generosity of this community, thanks for adding that. You might want to consider adding it to the Wiki.
Cheers!

 Signature 

Peace, e-man.
stookstudio.com, websites built with care and web standards. LinkedIn profile

Profile
 
 
Posted: 29 August 2007 12:45 AM   [ Ignore ]   [ # 5 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  507
Joined  04-23-2006
JohnD - 05 August 2007 05:08 AM

... So, if you are interested, visit phpletter.com and see for yourself.

For one vital bit of help, join their forum and look at this entry ...

i truly hope not to offend you JohnD.
Can you show a screenshot of your WYSIWG Progress Light, so we wouldn’t have to sign up for yet, another forum?

 Signature 

OLD username was jammo, NEW username is OrganizedFellow

It’s a struggle even to keep focused. This is the best of my AD/HD & GTD.
The exceptionally slow growth of my web dev projects is eclipsed by my patience, understanding and desire to learn AS MUCH AS POSSIBLE as I slowly progress.

Profile
 
 
Posted: 29 August 2007 06:07 AM   [ Ignore ]   [ # 6 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  313
Joined  05-26-2004

Not offended, just puzzled. Of what would you like a screenshot? I cannot quite understand how a screenshot would help with what you need to know, but I will do my best if you could clarify.

 Signature 

...for there is no way to reduce a hunter to economic dependence and make him hunt for you - Albert Jay Nock ~ “Our Enemy the State”

Profile
 
 
Posted: 29 August 2007 08:52 AM   [ Ignore ]   [ # 7 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  507
Joined  04-23-2006

Am so sorry JohnD.
I did not fully read your post.
I thought you had released a WYSIWYG plugin/extension for the user interface. oops.

 Signature 

OLD username was jammo, NEW username is OrganizedFellow

It’s a struggle even to keep focused. This is the best of my AD/HD & GTD.
The exceptionally slow growth of my web dev projects is eclipsed by my patience, understanding and desire to learn AS MUCH AS POSSIBLE as I slowly progress.

Profile
 
 
Posted: 29 August 2007 09:12 AM   [ Ignore ]   [ # 8 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  313
Joined  05-26-2004

No problem - let me know if I can help in any other way.

 Signature 

...for there is no way to reduce a hunter to economic dependence and make him hunt for you - Albert Jay Nock ~ “Our Enemy the State”

Profile
 
 
Posted: 09 October 2007 08:47 AM   [ Ignore ]   [ # 9 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  147
Joined  08-03-2003

John,

Are you able to use multiple upload directories with the AJAX file manager?

 Signature 

Phil Hertzler
TDC Design

Profile
 
 
Posted: 09 October 2007 09:34 AM   [ Ignore ]   [ # 10 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  313
Joined  05-26-2004

Are you able to use multiple upload directories with the AJAX file manager?

Yes, you can use multiple directories, permissions permitting, and you can create directories (folders) as required.

 Signature 

...for there is no way to reduce a hunter to economic dependence and make him hunt for you - Albert Jay Nock ~ “Our Enemy the State”

Profile
 
 
Posted: 09 October 2007 11:39 AM   [ Ignore ]   [ # 11 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  147
Joined  08-03-2003

That’s excellent. I look forward to trying it out. Uploads were always our big struggle with using the WYSIWYG options.

 Signature 

Phil Hertzler
TDC Design

Profile
 
 
Posted: 15 November 2007 04:29 AM   [ Ignore ]   [ # 12 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  196
Joined  08-14-2006

I am trying to get this to work for several hours now without succes.
I have read the document provided by asozzi, copied the code, read the instructions on phpletter but without any succes. I just dont see the icon where i can upload the images…. And if I copy the code provided by asozzy the tinyMCE doest load anymore…. does anybody know how to do this right?

 Signature 

http://www.octografx.com

Profile
 
 
Posted: 15 November 2007 04:51 AM   [ Ignore ]   [ # 13 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  313
Joined  05-26-2004

Sanity 11 -

1. If you post copies of your tinyMCE settings and Ajax FileManager base-config file I will try to help.
2. Also, are you invoking tinyMce from within a template or within the EE CP?
3. Then it will also help to know which browser/terminal you are using.

 Signature 

...for there is no way to reduce a hunter to economic dependence and make him hunt for you - Albert Jay Nock ~ “Our Enemy the State”

Profile
 
 
Posted: 15 November 2007 06:07 AM   [ Ignore ]   [ # 14 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  196
Joined  08-14-2006

Hello!
Thank you for the fast reaction.
De browsers I am using are FF2 IE7 and IE6
I want to use it in the EE publish area.

Thanks for the help! I think this is a solution for the what i think is the biggest downside of EE! Fantastic work!

The hyrachy is as follows.

system
_extensions
__ext.tiny_mce.php
ajaxfilemanager
_tiny_mce
__plugins
___ajaxfilemanager
____inc
_____config.base.php
_uploaded
_tinymce_test.php

I will add the ext.tiny_mce in this post because te Attach files to this post link is not responding….

<?php

if ( ! defined('EXT'))
{
    
exit('Invalid file request');
}


class Tiny_mce
{
    
var $settings        = array();
    
    var
$name            = 'Tiny MCE Extension for EE';
    var
$version        = '1.0.1';
    var
$description    = 'Converts Textareas in Publish area into WYSIWYG editors';
    var
$settings_exist    = 'y';
    var
$docs_url        = 'http://tinymce.moxiecode.com/documentation.php';
    
    
// -------------------------------
    //   Constructor - Extensions use this for settings
    // -------------------------------
    
    
function Tiny_mce($settings='')
    
{
        $this
->settings = $settings;
    
}
    
// END
    
    // -------------------------------
    //  Add JavaScript Header
    // -------------------------------
    
    
function add_header()
    
{
        
global $PREFS, $EXT;
        
        
$r = ($EXT->last_call !== FALSE) ? $EXT->last_call : '';

        
$settings_parts = implode("\n\t\t", preg_split("/(\r\n|\n|\r)/", trim($this->settings['configuration'])));
        
        
$r .= '

settings['
script_url']).'">

//<![CDATA[
tinyMCE.init(
    {
'.
$settings_parts.
'
    }
);
//]]>


';    
        return $r;
    }
    // END
    
    
    // --------------------------------
    //  Activate Extension
    // --------------------------------
    
    function activate_extension()
    {
        global $DB, $PREFS;
        
        $default_settings = serialize(array('script_url'     => $PREFS->ini('site_url', TRUE).'tinymce/jscripts/tiny_mce/tiny_mce.js',
                                            'configuration' => 'mode : "
textareas"'));
        
        $DB->query($DB->insert_string('exp_extensions',
                                      array('extension_id'    => '',
                                            'class'            => "
Tiny_mce",
                                            'method'        => "
add_header",
                                            'hook'            => "
publish_form_headers",
                                            'settings'        => $default_settings,
                                            'priority'        => 10,
                                            'version'        => $this->version,
                                            'enabled'        => "
y"
                                            )
                                     )
                   );

    }
    // END
    
    
    // --------------------------------
    //  Update Extension
    // --------------------------------  
    
    function update_extension($current='')
    {
        global $DB;
        
        if ($current == '' OR $current == $this->version)
        {
            return FALSE;
        }
        
        if ($current > '1.0.0')
        {
            // Update queries for next version 1.0.1
        }
        
        $DB->query("
UPDATE exp_extensions
                    SET version
= '".$DB->escape_str($this->version)."'
                    
WHERE class = 'Publish_form'");
    }
    // END
    
    
    // --------------------------------
    //  Settings
    // --------------------------------  
    
    function settings()
    {
        global $PREFS;
        
        $settings = array();
        
        $settings['script_url']        = $PREFS->ini('site_url', TRUE).'tinymce/jscripts/tiny_mce/tiny_mce.js';
        $settings['configuration']    = array('t', "");
        
        // Complex:
        // [variable_name] => array(type, values, default)
        // variable_name => short name for setting and used as the key for language file
        // type:  t - textarea, r - radio buttons, s - select, ms - multiselect, f - function calls
        // values:  can be array (r, s, ms), string (t), function name (f)
        // default:  name of array member, string, nothing
        //
        // Simple:
        // [variable_name] => 'Butter'
        // Text input, with 'Butter' as the default.
        
        return $settings;
    }
    // END


}
// END Class

?>

File Attachments
config.base.txt  (File Size: 6KB - Downloads: 90)
 Signature 

http://www.octografx.com

Profile
 
 
Posted: 15 November 2007 07:28 AM   [ Ignore ]   [ # 15 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  313
Joined  05-26-2004

I cannot help you because I do not use asozzi’s modifications. Perhaps if you private message asozzi you could get help there.

 Signature 

...for there is no way to reduce a hunter to economic dependence and make him hunt for you - Albert Jay Nock ~ “Our Enemy the State”

Profile
 
 
Posted: 15 November 2007 07:46 AM   [ Ignore ]   [ # 16 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  196
Joined  08-14-2006

Hello John.

Thanks anyway.
Although i don’t care about asozzi’s modifications, i just want the button so my customers can easily upload their files… do you know where I can find a description for that?

 Signature 

http://www.octografx.com

Profile
 
 
Posted: 15 November 2007 08:02 AM   [ Ignore ]   [ # 17 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  196
Joined  08-14-2006

Ok!
I am getting there now.

Still need to puzzle a little.
Now i get the upload screen… but no stylesheet and the select button is not working.

 Signature 

http://www.octografx.com

Profile
 
 
Posted: 15 November 2007 08:48 AM   [ Ignore ]   [ # 18 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  196
Joined  08-14-2006

Working on this whole day now… can anybody tel me why it has no stylesheet and the select button is not working?
I have used the files JohnD provided. changed the paths.
I cannot find a path that has anything to do with the stylesheets and the select button is a compleet mystery to me since I am no programmer.

This is becoming so frustrating now.

 Signature 

http://www.octografx.com

Profile
 
 
   
1 of 2
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65026 Total Logged-in Users: 45
Total Topics: 82116 Total Anonymous Users: 24
Total Replies: 441310 Total Guests: 185
Total Posts: 523426    
Members ( View Memberlist )
Newest Members:  meenoiYang.JianuoioitsukiNathan HammondalexcigadamstaneckiLucas Mayscybermilltstitt