Joomla calls the implementation method of the built-in editor.

Source: Internet
Author: User

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 ');

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.