<?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($qOE89) { $this->addVariables(array('editorMode' => $qOE89)); return $this; } public function htmlFilter($DMbpM = true) { $this->addVariables(array('htmlFilter' => $DMbpM)); return $this; } public function editorOption($cBDsM = true) { $this->addVariables(array('editorOption' => $cBDsM)); return $this; } public function server($RlLfN) { $this->addVariables(array('server' => $RlLfN)); return $this; } public function prepareInput($cBDsM, $BI0ew) { if ($this->variables['htmlFilter']) { $cBDsM = HtmlUtil::filter($cBDsM); } return $cBDsM; } }