Dynamic\Jobs\Forms\SimpleHtmlEditorField
Class SimpleHtmlEditorField
Originally from https://github.com/unclecheese/silverstripe-bootstrap-forms
Should be replaced when/if bootstrap forms updates
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 DBHTMLText FieldHolder()
Hierarchy
Extends
- SilverStripe\Forms\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