Interface the display of a richtext field

/sprout/Controllers/Admin/PageAdminController.php Highlighted file source
Line 63: use Sprout\Helpers\TinyMCE4RichText;
Line 824: $update_fields['type'] = 'RichText';
Line 912: TinyMCE4RichText::needs();
Line 1011: if ($widget['area_id'] == 1 and $widget['type'] == 'RichText') {
Line 1121: // Richtext width and height
Line 1122: $richtext_width = Kohana::config('sprout.admin_richtext_width');
Line 1123: $richtext_height = Kohana::config('sprout.admin_richtext_height');
Line 1124: if (!$richtext_width) $richtext_width = 700;
Line 1125: if (!$richtext_height) $richtext_height = 500;
Line 1152: $view->richtext_width = $richtext_width;
Line 1153: $view->richtext_height = $richtext_height;
Line 1399: if ($widget['area_id'] != 1 or $widget['type'] != 'RichText') continue;
Line 2158: AND widget.area_id = 1 AND widget.active = 1 AND widget.type = 'RichText'

/sprout/Helpers/Fb.php Highlighted file source
Line 662: * Generates a richtext field - i.e. TinyMCE
Line 665: * @param string $name The field name for this richtext field.
Line 667: * @param array $items Specify 'type' for RichText, e.g. 'TinyMCE4', or 'TinyMCE4:Lite'
Line 669: * into a richtext field
Line 671: public static function richtext($name, array $attrs = [], array $items = [])
Line 681: return RichText::draw($name, $value, $width, $height, @$items['type']);

/sprout/Helpers/RichText.php Highlighted file source
Line 22: * Interface the display of a richtext field
Line 24: abstract class RichText {
Line 29: * Field type should be a class name sans 'RichText', e.g. 'TinyMCE4' for the 'TinyMCE4RichText' class.
Line 40: if ($type == null) $type = trim(@$_GET['_richtext']);
Line 52: $class_name = $type . 'RichText';
Line 67: * Shows a richtext field. Should output content directly
Line 70: * @param string $content The content of the richtext field, in HTML

/sprout/Helpers/RichTextSanitiser.php Highlighted file source
Line 25: final class RichTextSanitiser
Line 107: * @param string $richtextData The HTML to sanitise
Line 110: public function __construct($richtextData, $permitted_tags = null)
Line 118: if (!@$this->dom_doc->loadHTML($richtextData, LIBXML_NOCDATA)) {
Line 157: * Get the list of errors produced during @see RichTextSanitiser::sanitise

/sprout/Helpers/TinyMCE4RichText.php Highlighted file source
Line 22: * Interface the display of a richtext field
Line 24: class TinyMCE4RichText extends RichText
Line 42: * Shows a richtext field. Should output content directly
Line 45: * @param string $content The content of the richtext field, in HTML
Line 146: // CSS file: richtext.css, content.css
Line 148: $options['content_css'][] = Sprout::absRoot() . 'media/css/richtext.css?ts=' . time();
Line 149: if (file_exists(DOCROOT . 'skin/' . Subsites::getCode($subsite) . '/css/richtext.css')) {
Line 150: $options['content_css'][] = Sprout::absRoot() . 'skin/' . Subsites::getCode($subsite) . '/css/richtext.css?ts=' . time();
Line 161: $out .= " class=\"richtext-editor tinymce4-editor {$field_name_class}\" data-field-name=\"{$field_name_html}\">";

/sprout/Widgets/RichTextWidget.php Highlighted file source
Line 25: class RichTextWidget extends Widget
Line 46: * @return string a richtext input field; its type is config-specified, with TinyMCE4 the default
Line 50: $richtext_width = Kohana::config('sprout.admin_richtext_width');
Line 51: $richtext_height = Kohana::config('sprout.admin_richtext_height');
Line 53: return Form::richtext('text', ['width' => $richtext_width, 'height' => $richtext_height]);
A total of 57 lines in 13 files were found