SproutCMS

This is the code documentation for the SproutCMS project

function draw()

Draw a rich text field

Field type should be a class name sans 'RichText', e.g. 'TinyMCE4' for the 'TinyMCE4RichText' class.
Optionally, the name can be bollowed by : and a config group name, e.g. 'TinyMCE4:Lite' for the 'Lite' config.

Usage

unknown RichText::draw ( The $field_name , The $content [, The $width [, The $height [, Override $type ]]] );

Arguments

  1. The $field_name
    name of the field to draw.
  2. The $content
    content of the field, in HTML, but not escaped in any way.
  3. The $width = 600
    width of the field, in pixels. Default = 600
  4. The $height = 300
    height of the field, in pixels. Default = 300
  5. Override $type = NULL
    the field type. Default as per configuration and $_GET/$_SESSION overrides