croogo/croogo — pull request #133 by fahad19 (2013-02-18 06:05:41+00:00)
Title: 1.5 wysiwyg

New Wysiwyg plugin has been added. This plugin is intended to serve as a base for all other rich text editors. It provides a slim structure for your editor plugins to be applied to particular fields in forms, and also integrate file/attachments browser within the editor.

## Guidelines

* All editor plugins are required to come with a `wysiwyg.js` file, and that file should extend the properties of `Plugin/Wysiwyg/webroot/js/wysiwyg.js` where necessary.
* Editors are expected to fetch configuration of fields from `Configure::read('Wysiwyg.actions')`

## TinyMCE

The Tinymce plugin in core has been updated to follow this new approach, and requires Wysiwyg as a dependency.

## Dependencies and Plugin bootstrap ordering

Tinymce requires Wysiwyg as a dependency and it must be loaded first. But there would be cases when `Hook.bootstraps` will not have the correct ordering of plugin names and may end up loading Tinymce plugin before Wysiwyg.

For that reason, a quick fix has been made in `Config/croogo_bootstrap.php` to make sure dependencies are always loaded first.

## Other RTEs being ported

* [Ckeditor](https://github.com/fahad19/Ckeditor) - supports attachments browser too. goal is to replace TinyMCE one day in the core with this plugin.