TinyMCE

From VYRE

Jump to: navigation, search

TinyMCE is the WYSIWYG editor used in the system to allow rich text to be entered in forms.

Contents

Usage

The TinyMCE editor is used in the static text and images portlet, as well as for certain input fields on item edit portlets and item edit using template portlets.

Configuration

The TinyMCE instance used on the system can be configured in the configuration module.

The system wide settings can be changed under System Properties > System Configuration > HTML Editor settings. You can also configure custom html editors using the Configuration module Attribute Presentation Rules (Since Unify 4.7).

The most configured element is valid_elements or extended_valid_elements. This contains the html which is allowed to be generated by the editor. The most common features are setting which tags are allowed, which attributes are allowed, and which empty tags should be removed, and which should be kept.

Example

An example would be:

extended_valid_elements:"a[href|target],p,-h4/-h1/-h2/-h3/-h5/-h6",

This allows <a> tags with href and target attributes, <p> tags, and finally all <h?> tags are converted to h4 and removed if empty.

More configuration options can be seen at the TinyMCE configuration page.

Version

The current version of TinyMCE that is shipped with Unify is 3.4.7.

Prior to Unify 4.6.3, Unify shipped 3.2.0.1.

External Links

Personal tools