\SimpleHtmlEditorField
Defines a formfield that has HTML editing capability using the TinyMCE plugin
- Author: Uncle Cheese <unclecheese@leftandmain.com>
Synopsis
class SimpleHtmlEditorField
extends TextareaField
{
- // members
- public static string $default_buttons = "bold,italic,bullist,link,formatselect";
- public static string $default_blockformats = "p,h3,h4";
- // methods
- public SimpleHtmlEditorField setButtons()
- public SimpleHtmlEditorField setBlockFormats()
- public SimpleHtmlEditorField setCSS()
- public SimpleHtmlEditorField FieldHolder()
Hierarchy
Extends
- TextareaField
Members
public
- $default_blockformats — string
Methods
public
- FieldHolder() — Builds the form field, includes JavaScript, and sets defaults
- setBlockFormats() — Sets the available block formats for this HTML Editor
- setButtons() — Sets the buttons for this HTML editor
- setCSS() — Sets the default CSS for the editor, i.e. for typography