<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Field; use ModStart\Core\Util\HtmlUtil; class RichHtml extends AbstractField { protected $listable = false; protected static $js = array('asset/common/editor.js'); protected function setup() { $this->addVariables(array('editorMode' => 'default', 'server' => modstart_admin_url('data/ueditor'), 'htmlFilter' => true)); } public function editorMode($mmMF2) { $this->addVariables(array('editorMode' => $mmMF2)); return $this; } public function htmlFilter($JCV6U = true) { $this->addVariables(array('htmlFilter' => $JCV6U)); return $this; } public function server($vhuku) { $this->addVariables(array('server' => $vhuku)); return $this; } public function prepareInput($FT9zA, $hq1V2) { if ($this->variables['htmlFilter']) { $FT9zA = HtmlUtil::filter($FT9zA); } return $FT9zA; } }