The implementation method of the Joomla call system comes with the editor Joomla install Joomla Chinese template download Joomla template ann

Source: Internet
Author: User
Tags smarty template
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 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.

The above describes the Joomla call system comes with the implementation of the editor, including Joomla, editor content, I hope that the PHP tutorial interested in a friend helpful.

  • Related Article

    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.