<?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($ybhyk) { $this->addVariables(array('editorMode' => $ybhyk)); return $this; } public function htmlFilter($CJNWc = true) { $this->addVariables(array('htmlFilter' => $CJNWc)); return $this; } public function editorOption($gwXrh = true) { $this->addVariables(array('editorOption' => $gwXrh)); return $this; } public function server($J1_hF) { $this->addVariables(array('server' => $J1_hF)); return $this; } public function prepareInput($gwXrh, $dIED6) { if ($this->variables['htmlFilter']) { $gwXrh = HtmlUtil::filter($gwXrh); } return $gwXrh; } }