PHPackages                             icybee/module-editor - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. icybee/module-editor

ActiveIcanboogie-module[Utility &amp; Helpers](/categories/utility)

icybee/module-editor
====================

Provides an API to manage and use editors, as well as several editors.

4.0.x-dev(4y ago)02381BSD-3-ClauseJavaScriptPHP &gt;=5.6

Since Jul 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Icybee/module-editor)[ Packagist](https://packagist.org/packages/icybee/module-editor)[ RSS](/packages/icybee-module-editor/feed)WikiDiscussions 3.0 Synced 2mo ago

READMEChangelogDependencies (4)Versions (7)Used By (1)

Editor
======

[](#editor)

[![Packagist](https://camo.githubusercontent.com/e9755831a7510307b22761c0e30a5985c7c5dc71a82faeb7dc1f7143526fc720/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6963796265652f6d6f64756c652d656469746f722e737667)](https://packagist.org/packages/icybee/module-editor)[![Build Status](https://camo.githubusercontent.com/578a4b6a0bf65fa6838f2b2dd16076d7c5f9160e3af1629edf531b975d2ab30c/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4963796265652f6d6f64756c652d656469746f722e737667)](http://travis-ci.org/Icybee/module-editor)[![HHVM](https://camo.githubusercontent.com/cc3e9840108cc5ce6bc52eda03db23ce1a32628d251daa653ef41aa2164d0241/68747470733a2f2f696d672e736869656c64732e696f2f6868766d2f4963796265652f6d6f64756c652d656469746f722e737667)](http://hhvm.h4cc.de/package/Icybee/module-editor)[![Code Quality](https://camo.githubusercontent.com/550b7e917f2df16aa7b21103d791f2cad7f8569102942b4e4354c500d81778da/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f4963796265652f6d6f64756c652d656469746f722e737667)](https://scrutinizer-ci.com/g/Icybee/module-editor)[![Code Coverage](https://camo.githubusercontent.com/5c4db28fe3f9e1de8e5043b3f5344f87bc0089c8f230ec3a9db38ad2eb412b1e/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f4963796265652f6d6f64756c652d656469746f722e737667)](https://coveralls.io/r/Icybee/module-editor)[![Downloads](https://camo.githubusercontent.com/ee9e535447d3ec0689f213b76c041527c94fca990410333646cadc6996321b96/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6963796265652f6d6f64756c652d656469746f722e737667)](https://packagist.org/packages/icybee/module-editor/stats)

The Editor module (`editor`) provides an API to manage and use editors, and comes with several editors.

Different editors are used to enter the contents of the CMS [Icybee](http://icybee.org/). Whether it's the body of an article or its excerpt, the description of a file, the content of a page… from the simplest string to the different elements of a schema, or some element with rich text. These editors allow the user to enter varied types of content. They are also used to select images, records, forms, the view to display as the body of a page, and many other things.

The following editors are provided by the module:

- `rte` - A Rich Text Editor.
- `textmark` - An editor for the TextMark/Markdown syntax.
- `image` - A selector for a managed image.
- `node` - A selector for a node.
- `patron` - An editor for the Patron template engine.
- `php` - An editor for PHP code.
- `raw` - Lets you use HTML code.
- `tabbable` - An editor with tabbed content, where each tab can use its own editor.
- `widgets` - An editor that lets you pick and sort widgets.

Editors
-------

[](#editors)

The API provided by the module defines the interface common to all editors. They must be able to serialize/unserialize and render the content type they support. They also must provide the UI element used to edit that content. For instance, this is the `TextEditor` class that provides the `text` editor:

```
