Joomla calls the implementation method of the built-in editor. Joomla calls the implementation method of the built-in editor. this example describes how joomla calls the built-in editor of the system. For your reference, refer to: Call the implementation method of the built-in editor of Joomla to call joomla.
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
The code is as follows: echo $ editor-> display ('control name value', 'content', 'width', 'high', 'columns ', 'row', true, 'control id value ');