Source of file EmbedTextAreaField.php
Size: 0,594 Bytes - Last Modified: 2021-12-23T10:00:38+00:00
/var/www/docs.ssmods.com/process/src/code/fields/EmbedTextAreaField.php
123456789101112131415161718192021222324252627 | <?php /** * EmbedTextAreaField * * Requires embed/embed to work properly * * @author Kalyptus SPRL <thomas@kalyptus.be> */ class EmbedTextareaField extends TextareaField { public function extraClass() { return 'textarea ' . parent::extraClass(); } public function Field($properties = array()) { if (!class_exists(Embed\Embed::class)) { throw new Exception('Please require embed/embed'); } Requirements::javascript(FORM_EXTRAS_PATH . '/javascript/' . __CLASS__ . '.js'); return parent::Field($properties); } } |