How to implement the editor that comes with Joomla calling system joomla installation joomla Chinese template download joomla template installation

WBOY
Release: 2016-07-29 08:50:31
Original
1071 people have browsed it

The example in this article describes how Joomla calls the system’s built-in editor. Share it with everyone for your reference, the details are as follows:

Call the editor provided by 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:

string $name The name of the control, (will appear in the name of the control)
string $html The content of the text area
string $width The text The width of the area
string $height The height of the text area
int $col The number of columns of the textarea
int $row The number of rows of the textarea
boolean $buttons When true, the editor button will be displayed
string $id control The id value. If no id value is given, the name of the control will be displayed (will appear in the id of the control)
string $asset
object $author
array $params Parameters of the associative array editor.

Example:

In view.html.php

$editor =& JFactory::getEditor();

Copy after login

In the template file default.php

Copy the code The code is as follows:

echo $editor->display('control name value','content','width','height','number of columns','number of rows',true, 'control id value');

Readers who are interested in more joomla related content can check this Site topics: "Introduction to Symfony Framework Tutorial", "Introduction to Yii Framework and Summary of Common Techniques", "Summary of Excellent PHP Development Framework", "Basic Tutorial for Getting Started with Smarty Templates", "Summary of Common Methods in ThinkPHP", "Introduction to PHP Object-Oriented Programming" Tutorial", "php string (string) usage summary", "php+mysql database operation introductory tutorial" and "php common database operation skills summary"

I hope this article will be helpful to everyone based on joomla programming.

The above introduces the implementation method of Joomla calling system's built-in editor, including joomla and editor content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template