源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

Joomla调用系统自带编辑器的实现方法

  • 时间:2021-01-03 15:47 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:Joomla调用系统自带编辑器的实现方法
本文实例讲述了Joomla调用系统自带编辑器的方法。分享给大家供大家参考,具体如下: [b]调用Joomla系统带的编辑器:[/b] 路径: /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中
[url=http://www.1sucai.cn/Special/588.htm]Symfony框架入门教程[/url]》、《[url=http://www.1sucai.cn/Special/386.htm]Yii框架入门及常用技巧总结[/url]》、《[url=http://www.1sucai.cn/Special/155.htm]php优秀开发框架总结[/url]》、《[url=http://www.1sucai.cn/Special/26.htm]smarty模板入门基础教程[/url]》、《[url=http://www.1sucai.cn/Special/129.htm]ThinkPHP常用方法总结[/url]》、《[url=http://www.1sucai.cn/Special/43.htm]php面向对象程序设计入门教程[/url]》、《[url=http://www.1sucai.cn/Special/47.htm]php字符串(string)用法总结[/url]》、《[url=http://www.1sucai.cn/Special/84.htm]php+mysql数据库操作入门教程[/url]》及《[url=http://www.1sucai.cn/Special/231.htm]php常见数据库操作技巧汇总[/url]》 希望本文所述对大家基于joomla程序设计有所帮助。
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部