SproutCMS

This is the code documentation for the SproutCMS project

function richtext()

Generates a richtext field - i.e. TinyMCE

Usage

string Fb::richtext ( string $name , array $attrs , array $items );

Arguments

  1. string $name
    The field name for this richtext field.
  2. array $attrs
    Including 'height' and 'width' in pixels
  3. array $items
    Specify 'type' for RichText, e.g. 'TinyMCE4', or 'TinyMCE4:Lite'

Return value

  • string
    HTML containing a TEXTAREA element and an associated SCRIPT element which to converts it
            into a richtext field