SproutCMS

This is the code documentation for the SproutCMS project

class RichText

Interface the display of a richtext field

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2026-09-16
**/
class NewClassName extends RichText {
    
    /**
    * 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.
    **/
    public function draw (The $field_name, The $content, The $width, The $height, Override $type) {
        // Method code goes here
    }
    
    /**
    * Shows a richtext field. Should output content directly
    **/
    protected function drawInternal (string $field_name, string $content, int $width, int $height, string $config_group) {
        // Method code goes here
    }
    
}
?>