Code Monkey home page Code Monkey logo

mt-yui-rte's Introduction

YUI Editor for Movabletype 4.x
v1.4
Copyright 2009 Richard Benson
Released under GPL: http://www.gnu.org/licenses/gpl.txt
-------------------------------
Developed by Richard Benson
http://www.richardbenson.co.uk/

Included in the package is ConfigAssistant 1.4 from Byrne Reese
http://www.majordojo.com/projects/movable-type/config-assistant/
-------------------------------

To install:

1) Copy contents of zip to your MT directory keeping folders intact
2) Edit mt-config.cgi and add the following line:
	RichTextEditor YUIEditor
   OR use the Rich Text Editor Selector plugin from:
    http://plugins.movabletype.org/rich-text-editor-selector/
3) Upload and enjoy!

Upgrade notes:
If you have made changes to config.js, your settings will need to be re-set in
the blog plugin settings page.  Additionally, if you have made any JavaScript
customisations to the editor using AfterYUIInit() then that will need to be
copied to the new config.js.

To configure:

Several options are available in the blog settings,
they are explained in there and at the following web address:

http://www.richardbenson.co.uk/projects/yui-rich-text-editor-in-movabl.html

To enable auto-tag selections you will need to get a Yahoo! appid for each blog,
from https://developer.yahoo.com/wsregapp/.  You will only need "Generic, No user
authentication required".

-------------------------------
VERSION NOTES:
-------------------------------
1.4
	~ Updated ConfigAssistant to 1.6.1
	~ Update to use 2.8.0r4 libraries
	~ Fix full-screen button
	~ Namespace code and tidy up

1.3
    ~ Added auto-tagging of entries to the RTE
    ~ A new button will appear in the toolbar if you have added a Yahoo! appid to the blog config
    ~ Packaged in ConfigAssistant to enable the blog settings to work

1.2
    ~ Update to use 2.7.0 libraries

1.1
    ~ Update to use 2.6.0 libraries

1.0
    ~ Adjusted width to make toolbar acceptable in IE6

0.9.10
    ~ Seem to have fixed the IE7 display issues
    ~ Tweaks here and there for layout in IE

0.9.9
    ~ Added 'ConfigYUIBase' to config.js so that you can host the YUI build
      files locally (this will negate the need for different versions of my plugin)
    ~ Moved to dynamic loading of required JS and CSS files to enable above,
      stopped short of the YUI loader for performance reasons
    ~ Added a function to config.js with a reference to the editor object that
      is called after load so that your own customisations can be added
    ~ Added full screen view
    ~ Fixed HTML editor box showing wrong size in FF (still an issue in IE)
    ~ Added insert file option that uses MT's asset dialog (if you have
      ConfigUseMTAssets set true)
    ~ Rearranged new buttons on menu
    ~ Fixed code to adjust containing DIV that was wrong, but somehow worked.
      Thanks to Dav.
    ~ Various tweaks and bits to existing code/functions and additional comments

0.9.8
    ~ Added option in config.js for xhtml compliant code. Default is
      set to xhtml, but other options are available, see the config
      file for details.

0.9.7
    ~ Fixed Dirty flag always being true and showing you the "are you sure
      you want to leave this page" dialog
    ~ Got the turning RTE off and on through MT drop-down working
    ~ Added config file for easy configuration
    ~ Switched to using Yahoo! hosted JS files
    ~ IE7 problem still exists


0.9.5
    ~ Now uses MT's asset managment as an option (default is on)
    ~ IE7 still throws a wobbly with the toolbar every now and then,
      some times it just lays the alignment buttons in column, other
      times the buttons are all over the place.
    ~ Removed the MT convert_breaks drop down as have built in a HTML
      editor and having this AND the HTML edit function was not compatible.
    ~ Form tags are still removed, but the contents left behind, this can be
      changed easily, let me know.


0.9 - First public release
    ~ Works in entries and pages and allows switch between body and extended
    ~ Removed content area sizer as RTE will now stretch automaticallt to fit
      content.
    ~ Doesn't use MT's built in asset management
    ~ Doesn't allow switching between RTE and plain text using MT drop-down,
      you can however view in HTML edit mode
    ~ Weird layout issues in IE7
    ~ Form elements will be removed from entry/page content by YUI - still don't
      know why it would do this!
    ~ Tested in FF2, IE7, Opera 9

------------------------------
Special Note:
None of this would have been possible without the FCK Editor plugin from
David Davis (http://xantus.vox.com/) as MT's documentation on all of this
is non-existant!
------------------------------

mt-yui-rte's People

Contributors

richardbenson avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mt-yui-rte's Issues

Asset manager link not working in MT5

Sixapart have changed the asset manager links in MT5 so the button is no longer working properly.

Have scoured the JS but as yet not found the MT5 equivalent.

Pasted H tags are changed to P's in xhtml mode

If I paste in a bunch of unstyled text from say DW or whatever, and try and select a Heading, I get the

stuff. If I type directly into the YUIEditor and then select a heading, it works. Sadly, that is rarely how people work. They paste into the YUIEditor and start styling things.

As a relevant example. For my client I have specific fonts, sizes, and colors already defined for H2, H3, and H4 tags. All I want is the ability for the client to be able to select Headings 2, 3 and 4 from the drop down menu in your YUIEditor.

Can script tags be allowed?

I also notice your YUIEditor also kills off Javascript tags, which is normally a good thing, except I am using them to mask email addresses in the body of Entries. Is there a way to write an exception in the config file for that?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.