<?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($qAUbs) { $this->addVariables(array('editorMode' => $qAUbs)); return $this; } public function htmlFilter($Nxn6E = true) { $this->addVariables(array('htmlFilter' => $Nxn6E)); return $this; } public function editorOption($Mczr_ = true) { $this->addVariables(array('editorOption' => $Mczr_)); return $this; } public function server($Tkur1) { $this->addVariables(array('server' => $Tkur1)); return $this; } public function prepareInput($Mczr_, $dzJ4e) { if ($this->variables['htmlFilter']) { $Mczr_ = HtmlUtil::filter($Mczr_); } return $Mczr_; } }