Joomla calls the implementation method of the built-in editor.
This example describes how Joomla calls the built-in editor of the system. 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
Copy codeThe Code is as follows: echo $ editor-> display ('control name value', 'content', 'width', 'high', 'columns ', 'row', true, 'Control id value ');