Source of file TextBlock.php
Size: 0,480 Bytes - Last Modified: 2021-12-24T06:34:31+00:00
/var/www/docs.ssmods.com/process/src/code/blocks/TextBlock.php
123456789101112131415161718192021222324 | <?php /** * Content block with text * @author bummzack */ class TextBlock extends Block { private static $db = array( 'Content' => 'HTMLText' ); public function getCMSFields() { $fields = parent::getCMSFields(); $tinyMce = HtmlEditorField::create('Content', _t('TextBlock.CONTENT', 'Content')); $fields->addFieldToTab('Root.Main', $tinyMce); $this->extend('updateCMSFields', $fields); return $fields; } } |