修改原理:参数设置,是保存文件中的,而不是数据库中,根本不支持富文本编辑器,但是这里用到了,还想办法实现了,先用一个原控件textarea,我们再调用富本文编辑器,要ID名相同才行,这样两个控件中都会有内容,想办法盖住第一个控件 就行了。
还有就是保存和调用这个变量时,要记得用PHP函数,转换富文本的HMTL内容代码噢。
<div class="form-group">
<label class="col-xs-12 col-sm-3 col-md-2 col-lg-2 control-label">游戏规则</label>
<div class="col-sm-8">
<input name="submit" type="submit" value="提交" class="btn btn-primary" />
<p></p>
<input type="hidden" name="token" value="{$_W['token']}" />
<textarea style="height:0px;width:700px" id="description" name="data[description]" class="pp5 form-control description" cols="1">{$settings['description']}
</textarea>
{php echo tpl_ueditor('description',$settings['description']);}
</div>
<style>
用前面的富文本编辑器 盖住下面的 原控件,达到好看的效果
#edui1{
left:-15px;
top:-8px;
width:800px;
}
</style>
</div>
评论