YUI Editor in Movabletype v1.0

(2) (0)
At last I can make this 1.0!

IE6 is not yet perfect, but as good as it can get until Yahoo! update the CSS for the editor.

Download YUI Rich Text Editor for Movabletype 4 v1.0

Version Notes:
1.0
  • Width tweaked to make IE6 look better

 

No TrackBacks

TrackBack URL: http://www.richardbenson.co.uk/mt/mt-tb.cgi/126

2 Comments

Hey Richard, this plugin is great on the formatting and usability side. There's one slight (well, big) problem with it though and that is when it deals with Flash or object/embed tags.

When I copy and paste in embed code from YouTube or Viddler into the entry (there's no embed button) via the source box, when I click back to the WYSIWYG view, it strips that code down and throws in a couple span tags.

I don't know YUI enough to tell it to allow object/embed or even script tags in the editor (for a Digg badge, for example), so other than formatting my text and throwing in an occasional image, I can't do much more with this editor.

Any ideas?

Hi Chris,

The YUI editor strips out tags it thinks may be harmful, but you can affect which tags it strips out, I've had to do that to allow the MT asset manager as it wraps them in form tags.

To achieve this, you need to edit /mt-static/plugins/YUIEditor/config.js

In the "afterYUIInit" function, add the following:

delete YUIEditor.invalidHTML.object;
delete YUIEditor.invalidHTML.embed;
delete YUIEditor.invalidHTML.script;

docs here: http://developer.yahoo.com/yui/docs/YAHOO.widget.SimpleEditor.html#property_invalidHTML

Leave a comment

Recent Comments

  • Hi Tom, Sorry I only just saw this comment, I didn't get a notification from MT (unless it was caug

  • Richard, Noticed you commented on this plugin here: http://plugins.movabletype.org/rich-text-editor-

  • Thanks for the link to your main index page Richard, it will give me a better understanding of what

    toni.hambilton.myopenid.com
    Collating Action Streams
  • Hi Chris, The YUI editor strips out tags it thinks may be harmful, but you can affect which tags it

  • Hi Toni, That trick is not included in the examples here, I based them on the default code. It's q

  • Hi Richard, I added all the above code and checked out your add-twitter page, and the short version

    toni.hambilton.myopenid.com
    Collating Action Streams
  • Great plugin Richard. Until recently this worked as expected, but now I'm getting the re-feed every

    toni.hambilton.myopenid.com
    MT.org Action Stream 0.1
  • If you don't want to pay the extra money is P&P included? I would have thought a huge ballista would

  • I haven't tried it, but you should be able to use <mt:actionstreams service_type="digg"

  • Hey Richard, this plugin is great on the formatting and usability side. There's one slight (well, bi

    me.chrisfullman.com
    YUI Editor in Movabletype v1.0
  • Many thanks, Richard. This is very useful. I have to confess that I am having great difficulty wrap

joke