可视化编辑器的调用方法
需要用到editor函数,editor($textareaid = ‘content’, $toolbar = ‘phpcms’, $width = 500, $height = 400)
$textareaid 为文本框 id
$toolbar 为工具按钮样式,目前有 phpcms 和 introduce 两种可以选择,一般较大的内容编辑框用 phpcms,而简要介绍则用 introduce
$width 指定编辑器的宽度
$height 指定编辑器的高度
例如:在文章模块发布文章时的内容编辑采用可视化编辑器的代码如下
=editor(“content”,”phpcms”,550,400)?>
我在后盾人看过教师讲过这个,这样就行了,希望能帮到你(≧㉨≦)