*/ class LSformElement_wysiwyg extends LSformElement { var $fieldTemplate = 'LSformElement_wysiwyg_field.tpl'; /** * Retourne les infos d'affichage de l'élément * * Cette méthode retourne les informations d'affichage de l'élement * * @return array */ public function getDisplay(){ $return = $this -> getLabelInfos(); if (!$this -> isFreeze()) { LStemplate :: addLibJSscript('tinymce/js/tinymce/tinymce.min.js'); LStemplate :: addJSconfigParam( $this -> name, array( 'extra_options' => $this -> getParam('html_options.extra_options', array()), ) ); } LStemplate :: addJSscript('LSformElement_wysiwyg_field.js'); LStemplate :: addJSscript('LSformElement_wysiwyg.js'); LStemplate :: addCssFile('LSformElement_wysiwyg.css'); $return['html'] = $this -> fetchTemplate(); return $return; } }