En:WPMU Plugin:Miwa Editor Mu

Un article de Wiki.

Jump to: navigation, search

This plugin for WordPress MU et WordPress 2.1 completes the functions/buttons of the WYSIWYG default editor tinyMCE.

Thanks to add your comments in the sections of this page (installations with success / failures, problems, etc...), this will help me to improve the next versions.

Sommaire

Presentation

This package loads almost all the available plugins for tinyMCE 2.0.9. Once the plugin activated, you'll have:

  1. A long time to load your edition pages! (it's better to have a good internet connection)
  2. An editor with a toolbar including 4 rows of buttons: 2 are visible and 2 are hidden
    1. The first row is for 'beginner' users
    2. The second row is for 'confirmed' users
    3. When pressing the last button of the 2nd row, the 3rd and 4th rows will appear; that's for 'expert' users

Once activated:

Image:Miwaeditormu_2.jpg

Displaying the complete toolbar:

Image:Miwaeditormu_4.jpg

Download

Version CheckPoint 11FEB07: http://microwa.com/doc/2007/02/miwa-editor-mu.tar.gz

Modifs:

  1. Bug: Add missing file blank.htm, that was provoking errors under IE7
  2. Ergonomy: Modification in the configuration of toolbar and path location is now on top
  3. Performance: Suppression of some rarely used plugins in the default configuration dans la config, loading time should be improved

The initial MiwaEditorMu package .zip is available here: http://microwa.com/doc/2007/01/miwa-editor-mu.zip (version alpha JAN07)

Tutorial

  1. Install the plugin into the folder wp-content/plugins/miwa-editor-mu
  2. Activate the plugin in the administration panel

That's all!

When you go back in the screen 'Write Post', you should have 2+2 rows of buttons for your 'rich' editor toolbar.

Traductions

For english language, all labels should be ok.

<<section to complete>>

Installation problems

If you don't have any rich editor, then we have to check each step to find out the problem.

1a) Check, in your profile, the option 'use the visual rich editor': it must be checked.

1b) Let's continue with clearing the browser cache and reload again your admin page 'Write Post'

2) If there's still nothing new, let's check further...

Look in the HTML source of the page 'Write Post':

2a) The header must contain something like this (replace one.sambazen.net with your WPmu installation)

<script type='text/javascript' src='http://one.sambazen.net/wp-content/plugins/miwa-editor-mu/js/tinymce/tiny_mce_gzip.php?ver=209'></script>
<script type='text/javascript' src='http://one.sambazen.net/wp-content/plugins/miwa-editor-mu/js/tinymce/tiny_mce_config.php?ver=alpha19JAN07'></script>

2b) These URLs should load the correct compact javascript code. Check these URLs as for any web site with your browser. The browser should display some javascript code... It should looks like

For /wp-content/plugins/miwa-editor-mu/js/tinymce/tiny_mce_gzip.php?ver=209, it's a big compact javascript file:

function TinyMCE_Engine(){var ua;this.majorVersion="2";this.minorVersion="0.9";this.releaseDate="2007-01-09";this.instances=new Array();this.switchClassCache=new...

For /wp-content/plugins/miwa-editor-mu/js/tinymce/tiny_mce_config.php?ver=alpha19JAN07, it's a small javascript configuration file:

initArray={ mode : "specific_textareas", editor_selector : "mceEditor", language : "en", width : "100%", plugins : 
...
tinyMCE.init(initArray);

If the javascript files are not accessible

  1. Check if the URL is correct
  2. Check if the files can be accessed in read mode

If the javascript code is wrong (like returning PHP error), then just send me the error message you get, and I'll try to correct it asap.

If after these checks, the MiwaEditorMu plugin still doesn't work, just shout! Please give more details and I'll try to investigate further...

Successful Installations

In this section, thanks to add you browser and you internet host (if not already listed)

Browser:

Internet Explorer 7.0 OK

FireFox 2.0 OK


Host:

http://microwa.com OK


Failed Installations

In this section, thanks to add you browser and you internet host (if not already listed)

Browser:


Problems in everyday use

In this section, add the bugs, the non-compatible plugins, etc...


Question 24JAN07

The problem that I am having is that I simply cannot get this plugin to load.

I've been following all of hte steps that you posted above, and they don't seem to help me much.

I noticed that the javascript is being called, as this is what i got when I went to view the source on my page:

<script type='text/javascript' src='http://home.hadithuna.com/wp-content/plugins/miwa-editor-mu/js/tinymce/tiny_mce_gzip.php?ver=209v22JAN07'></script> <script type='text/javascript' src='http://home.hadithuna.com/wp-content/plugins/miwa-editor-mu/js/tinymce/tiny_mce_config.php?ver=alpha22JAN07'></script>

I can follow the first link and get the functions text to appear, but if you go to my site here:

http://home.hadithuna.com/wp-content/plugins/miwa-editor-mu/js/tinymce/tiny_mce_config.php?ver=alpha22JAN07

Then nothing comes up.

Any tips?


Answer 24JAN07

The URL output is just empty, it's strange indeed! I'd have prefer an explicit PHP error, but anyway, I guess that some PHP code is faulty. I'll try to remove unuseful PHP code in next versions.

As a workaround, replace your tiny_mce_config.php file content with the javascript code from this URL:

http://one.sambazen.net/wp-content/plugins/miwa-editor-mu/js/tinymce/tiny_mce_config.php?ver=alpha19JAN07




Reply 25JAN07

i tried removing all the php from the tiny_mce_config.php file LHLH and had no success copyingin your javascript. What is truly bizzarre is that i somehow get the same error of a blank space, it's as if that file isn't being called at all.

You can try at this link again: http://home.hadithuna.com/wp-content/plugins/miwa-editor-mu/js/tinymce/tiny_mce_config.php?ver=alpha22JAN07

To see how I've pasted the correct code in. But still no dice!



Reply 29JAN07 - By LH

Looking more into details in the admin header of your site, I found there is another call to tiny_mce_gzip.php. And as it's overwriting my configuration, I guess the conflict comes from there:

<script language="javascript" type="text/javascript" src="/wp-includes/js/tinymce/tiny_mce_gzip.php?ver=09212006a&theme=advanced&language=&plugins=inlinepopups%2Cautosave%2Cspellchecker%2Cpaste%2Cwordpress&lang=&index=0"></script> <script type='text/javascript' src='/wp-content/mu-plugins/ImageManager/assets/dialog.js'></script>

I guess that code is generated from ImageManager. As I can't deactivate the ImageManager plugin, could you check that the problem disappear when you deactivate ImageManager ?


Reply 18FEB07 - By Macin

I confirm, there is a conflict with ImageManager. If I disable it, it works (BTW, I'm using the last Version CheckPoint 11FEB07). IMO, ImageManager is a great plugin so if it's included (or fixed) with the next Miwa Editor, it would be awesome.


I loaded your editor in wordpress 2.1 and when launching write new post I was happy to see the editor pop up but inside the box was an image of my entire template (TripleK2) and all banners and ads that I could move around inside a bounding box. I was not able to type nor did it publish the post. I know nothing about javascript or php. A very strange quirk. I will see if it does it again tomorrow.


Hello,

Which version of the plugin do you have ? I had this problem as the blank.htm file was missing in the version first version. If you try the CheckPoint version dated from February, the problem shoud diseappear.

Whishlist

In this section, add your wishes for future evolution of the MiwaEditorMu plugin.

Ongoing Development