This article mainly introduces the implementation method of Joomla to call the built-in editor of the system. The example analyzes the specific steps, functions, and usage skills of Joomla to call the built-in editor of the system, for more information about how Joomla calls the built-in Editor, see the example in this article. We will share this with you for your reference. The details are as follows:
Call the editor in the Joomla system:
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:
The name of the string $ name control, which appears in the control name)
String $ content in the html text area
String $ width the width of the text area
String $ height the height of the text area
Number of columns of int $ col on textarea
Number of rows for textarea in int $ row
When boolean $ buttons is true, the editor button is displayed.
The id value of the string $ id control. If no id value is provided, the control name is displayed (displayed in the Control id)
String $ asset
Object $ author
Array $ params associates with parameters in the array editor.
Example:
In view.html. php
$editor =& JFactory::getEditor();
In the template file default. php
The Code is as follows:
Echo $ editor-> display ('control name value', 'content', 'width', 'high', 'columns ', 'row', true, 'Control id value ');