<?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, 'editorOption' => null)); } public function editorMode($oWpPb) { $this->addVariables(array('editorMode' => $oWpPb)); return $this; } public function htmlFilter($pvsQp = true) { $this->addVariables(array('htmlFilter' => $pvsQp)); return $this; } public function editorOption($ib3B9 = true) { $this->addVariables(array('editorOption' => $ib3B9)); return $this; } public function server($xyEtj) { $this->addVariables(array('server' => $xyEtj)); return $this; } public function prepareInput($ib3B9, $wjNCD) { if ($this->variables['htmlFilter']) { $ib3B9 = HtmlUtil::filter($ib3B9); } return $ib3B9; } }