新网创想网站建设,新征程启航

为企业提供网站建设、域名注册、服务器等服务

利用Joomla怎么调用系统自带的编辑器-创新互联

利用Joomla怎么调用系统自带的编辑器?针对这个问题,这篇文章详细介绍了相对应的分析和解答,希望可以帮助更多想解决这个问题的小伙伴找到更简单易行的方法。

成都创新互联公司是工信部颁发资质IDC服务器商,为用户提供优质的西部信息服务器租用服务

调用Joomla系统带的编辑器:


路径: /libraries/joomla/html/editor.php

类:JEditor

函数: void display( string $name, string $html, string $width, string $height, int $col, int $row, [boolean $buttons = true], [string $id = null], [string $asset = null], [object $author = null], [array $params = array()])

参数说明:

string $name 控件的名称, (会出现在控件的name里)
string $html 文本区域的内容
string $width 该文本的面积的宽度
string $height 该文本的面积的高度
int $col 对textarea的列数
int $row 对textarea的行数
boolean $buttons 为true 时编辑器按钮会显示出来
string $id 控件的id值,如果不给id值,会显示控件的名称 (会出现在控件的id里)
string $asset 
object $author 
array $params 关联数组编辑器的参数。

例子:

在view.html.php中

$editor =& JFactory::getEditor();

在模板文件default.php中


复制代码 代码如下:

echo $editor->display('控件name值','内容','宽','高','列数','行数',true, '控件id值');

关于利用Joomla怎么调用系统自带的编辑器问题的解答就分享到这里了,希望以上内容可以对大家有一定的帮助,如果你还有很多疑惑没有解开,可以关注创新互联行业资讯频道了解更多相关知识。


标题名称:利用Joomla怎么调用系统自带的编辑器-创新互联
网站URL:http://www.wjwzjz.com/article/dpejhc.html
在线咨询
服务热线
服务热线:028-86922220
TOP