Joomla調用系統內建編輯器的實現方法,joomla調用_PHP教程

來源:互聯網
上載者:User

Joomla調用系統內建編輯器的實現方法,joomla調用


本文執行個體講述了Joomla調用系統內建編輯器的方法。分享給大家供大家參考,具體如下:

調用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相關內容感興趣的讀者可查看本站專題:《Symfony架構入門教程》、《Yii架構入門及常用技巧總結》、《php優秀開發架構總結》、《smarty模板入門基礎教程》、《ThinkPHP常用方法總結》、《php物件導向程式設計入門教程》、《php字串(string)用法總結》、《php+mysql資料庫操作入門教程》及《php常見資料庫操作技巧匯總》

希望本文所述對大家基於joomla程式設計有所協助。

http://www.bkjia.com/PHPjc/1123808.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/1123808.htmlTechArticleJoomla調用系統內建編輯器的實現方法,joomla調用 本文執行個體講述了Joomla調用系統內建編輯器的方法。分享給大家供大家參考,具體如下: 調...

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.