Joomla Call system comes with the implementation method of the editor, Joomla calls
In this paper, we describe the method of Joomla invoking the system's own editor. Share to everyone for your reference, as follows:
Call the Joomla system with the editor:
Path:/libraries/joomla/html/editor.php
Class: Jeditor
function: 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 ()])
Parameter description:
String $name the name of the control (which appears in the control's name)
String $html the contents of the text area
String $width the width of the area of the text
String $height the height of the area of the text
int $col number of columns for textarea
int $row The number of rows to textarea
A Boolean $buttons is true when the editor button is displayed
string $id The ID value of the control, and if the ID value is not given, the name of the control (which appears in the control's ID) is displayed
String $asset
Object $author
Array $params The parameters of the associative array editor.
Example:
In the view.html.php
$editor =& jfactory::geteditor ();
In the template file default.php
Copy the code as follows: Echo $editor->display (' Control Name value ', ' content ', ' width ', ' high ', ' Number of columns ', ' Number of rows ', true, ' control ID value ');
More about Joomla related content readers can view this site topic: "Symfony Framework Introductory Tutorial", "Yii framework Introduction and common skills Summary", "PHP Excellent Development Framework Summary", "Smarty Template Primer Basic Tutorial", "thinkphp Common Methods Summary", " PHP Primer for object-oriented programming, PHP string Usage Summary, Introduction to PHP+MYSQL database operations, and PHP common database operations Tips Summary
It is hoped that this article is helpful to everyone based on Joomla program design.
http://www.bkjia.com/PHPjc/1123808.html www.bkjia.com true http://www.bkjia.com/PHPjc/1123808.html techarticle Joomla calls the system with the implementation of the editor, Joomla calls the example of this article describes the Joomla call system comes with the method of the editor. Share to everyone for your reference, as follows: Tune ...