phpcms查询接口接口怎么用

2025-05-16 08:35:19
推荐回答(1个)
回答(1):

可视化编辑器的调用方法
需要用到editor函数,editor($textareaid = ‘content’, $toolbar = ‘phpcms’, $width = 500, $height = 400)

$textareaid 为文本框 id
$toolbar 为工具按钮样式,目前有 phpcms 和 introduce 两种可以选择,一般较大的内容编辑框用 phpcms,而简要介绍则用 introduce
$width 指定编辑器的宽度
$height 指定编辑器的高度

例如:在文章模块发布文章时的内容编辑采用可视化编辑器的代码如下



我在后盾人看过教师讲过这个,这样就行了,希望能帮到你(≧㉨≦)