The MU forums have moved to WordPress.org

Editor Monkey (24 posts)

  1. hbarquero
    Member
    Posted 17 years ago #

    Hello anyone has instaled the Editor Monkey Plugin on MU.

    Working?

  2. DrkWrz
    Member
    Posted 17 years ago #

    I want to do it. But it doesen't work. I think I must du some Fixes.

  3. DrkWrz
    Member
    Posted 17 years ago #

    Im trying to put editormonkey as Default Editor(putting it in mu-plugins) but im not able to get it workin. The only thing that happens when I put it there, is that the toolbar from the WISIWIG editor disapears.
    I'm really stuck, because I have no Idea of Javascript.

  4. drmike
    Member
    Posted 17 years ago #

    Might help us help you if you posted a link. :)

  5. DrkWrz
    Member
    Posted 17 years ago #

    The plugin isn't online now because I don't want the bloggers to worry. First must I get it working.
    The link is http://theaterblogs.de (it's in german)
    You can't register from your own. Someone must register you.
    I can post part of the code.

  6. drmike
    Member
    Posted 17 years ago #

    I mean a link to the plugin so we can try it out on our sites to see if we can get it working. :)

  7. DrkWrz
    Member
    Posted 17 years ago #

    Sorry I thougth that you knew that plugin http://www.rajprasad.net/plugins/editormonkey/

  8. DrkWrz
    Member
    Posted 17 years ago #

    Any progress??

  9. suleiman
    Member
    Posted 17 years ago #

    I'm interested in this too

  10. DrkWrz
    Member
    Posted 17 years ago #

    I din't make Editor Monkey work under WPMU. But I dit update tinyMCE to version 2.0.7.
    If You are interested. There is a third party plugin on sourceforgue heare.
    I also made a few changes in the script, because it isn't compressed.
    I remplaced In the tiny_mce_gzip.php

    <?php
    require_once("../../../wp-config.php");
    require_once("tiny_mce.js");
    ?>

    with

    <?php
    require_once("../../../wp-config.php");
    function wp_compact_tinymce_js($text) {
    // This function was custom-made for TinyMCE 2.0, not expected to work with any other JS.
    // Strip comments
    $text = preg_replace("!(^|\s+)//.*$!m", '', $text);
    $text = preg_replace("!/\*.*?\*/!s", '', $text);
    // Strip leading tabs, carriage returns and unnecessary line breaks.
    $text = preg_replace("!^\t+!m", '', $text);
    $text = str_replace("\r", '', $text);
    $text = preg_replace("!(^|{|}|;|:|\))n!m", '\\1', $text);
    return $text;
    }
    // General options
    $expiresOffset = 3600 * 24 * 30; // 30 days util client cache expires
    gzip_compression();
    // Output rest of headers
    header("Content-type: text/javascript; charset: UTF-8");
    header("Vary: Accept-Encoding"); // Handle proxies
    header("Expires: " . gmdate("D, d M Y H:i:s", time() + $expiresOffset) . " GMT");
    // Write main script
    $tinymce = file_get_contents(realpath("tiny_mce.js"));
    echo wp_compact_tinymce_js($tinymce);
    echo "\n\n";
    ?>

    I also rewrited the flash plugin to make it compatible with the anarchy media plugin (buttonsnap isn't working and I don't know why)

  11. suleiman
    Member
    Posted 17 years ago #

    While this seems super cool, aren't you missing buttonsnap? I use it for cori's Image Manager plugin and since I started using it I can't live without it.

  12. DrkWrz
    Member
    Posted 17 years ago #

    There must be a way to make buttonsnap work. But I don't use it, thats why I don't care much about it. Yo can always write a plugin for TinyMCE to call any thing like the image manager or so.

  13. suleiman
    Member
    Posted 17 years ago #

    drkwrz, what are the added benefits to using the 2.0.7 release of tiny? Perhaps if I was convinced there'd be no real functionality trade off I'd jump the bandwagon with you.

  14. DrkWrz
    Member
    Posted 17 years ago #

    Actually, yo can upgrade TinyMCE to the latest relase (2.0.8). There ar lots of new features, you can see them on the changelog

  15. suleiman
    Member
    Posted 17 years ago #

    I tried this out but had to revert unfortunately, because for some reason I couldn't get the plugin to load!

    Literally the only change I made was to rename the downloaded tiny_mce file to tinymce, because that was what was already there in the "js" folder.

    I tried it both with the bundled tiny_mce_gzip.php file and with the file incorporating your edit but neither launched tinymce. :(

  16. DrkWrz
    Member
    Posted 17 years ago #

    I'll Try to explain what I made.

    1. Make a backup from the tinyMCE that's built in wpmu.
    2. Download the latest version of tinyMCE.
    3. Upload all the files that are in the folder jscripts/tiny_mce from the tinyMCE you downloaded to /wp-inst/wp-includes/js/tinymce/
    4. Download the wordpress plugin from heare
    5. Upload tiny_mce_gzip.php to /wp-inst/wp-includes/js/tinymce/ and the wordpress folder to /wp-inst/wp-includes/js/tinymce/plugins/

    As I said before, you may change the code inside tiny_mce_gzip.php.

  17. suleiman
    Member
    Posted 17 years ago #

    Okay, I'm copying over the files now, will keep you posted.

    Edit: Nope. Still not working. Here's what I did:

    1) Downloaded tinymce 2.0.8

    2) Extracted files to desktop

    3) Downloaded wordpress tinymce plugin

    4) Moved tiny_mce_gzip.php file into tinymce folder

    5) Uploaded /wordpress/ directory to /tinymce/plugins/

    Any clue as to what I might be doing wrong?

  18. suleiman
    Member
    Posted 17 years ago #

    DrkWrz, could you by chance make a duplicate copy of your tiny_mce_gzip.php file and save it as a text file then make a link to it here? I've got strong suspicions that's our culprit.

  19. DrkWrz
    Member
    Posted 17 years ago #

    tiny_mce_gzip.php.txt

    I hope it's helpfull. ;)

  20. suleiman
    Member
    Posted 17 years ago #

    Thanks DrkWrz! That got it working.

    And perchance could you also post a copy of that AnarchyMedia PLayer hack you got working?

    By working I assume you mean you can use it to play video and audio files, and not that the buttons actually show up in TinyMCE am I right?

  21. DrkWrz
    Member
    Posted 17 years ago #

    I rewrote the flash plugin from tinyMCE. Intstead putting the embedd code it uses the anarchy media sintax [swf heigth="" width=""]url[/swf]. I made two buttons. One to put the url an the size of a swf file. And another to paste a flash embedd code from youtobe o something like it, It search automatically the heigth, the width and the url.
    I didn't make anything about the youtube, google video, ect buttons. But It wouldn't be difficult.
    Simply download the file and overwrite the flash plugin.

  22. suleiman
    Member
    Posted 17 years ago #

    DrKWrz, you're a real help and excellent addition to this community!

    I know that I myself and many of the other community members are anxious to get working version of SiteWide Tags, as is used on wordpress.com. Have you had any luck setting this up for your own WPMU site?

  23. DrkWrz
    Member
    Posted 17 years ago #

    It is on my todo list. But untill now I didn't even try it.

  24. imimelboy
    Member
    Posted 17 years ago #

    very nice topics thanks to you all for helping each other
    i wish you have a really Nice new year and best of luck.
    thank you so much again :X:X:X

About this Topic

  • Started 17 years ago by hbarquero
  • Latest reply from imimelboy