Interface the display of a richtext field
This is the code documentation for the SproutCMS project
Search documentation |
class RichTextInterface 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
}
}
?>
|
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Tuesday, 15th September, 2026 at 10:26 am |
|