Actions

J1.5

Difference between revisions of "Editors parameter type"

From Joomla! Documentation

(Fix red link)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[Image:Params.editors.jpg|right]]
 
[[Image:Params.editors.jpg|right]]
 +
 +
{{Ambox|type=notice|text=[[Parameter|Parameters]] have been superseded by [[Form field|form fields]] in Joomla! 1.6. You may want to use the corresponding [[Editors form field type]].}}
 +
 
The '''editors''' parameter type provides a drop down list of the available and enabled WYSIWYG editors.  If the parameter has a saved value this is selected when the page is first loaded.  If not, the default value (if any) is selected.
 
The '''editors''' parameter type provides a drop down list of the available and enabled WYSIWYG editors.  If the parameter has a saved value this is selected when the page is first loaded.  If not, the default value (if any) is selected.
  
Line 14: Line 17:
 
<noinclude>
 
<noinclude>
 
=== See also ===
 
=== See also ===
* [[Standard parameter types|Full list of standard parameter types]]
+
* [[J1.5:Standard parameter types|List of standard parameter types]]
[[Category:Components]][[Category:Modules]][[Category:Plugins]][[Category:Templates]][[Category:Development]]</noinclude>[[Category:References]][[Category:Module Development]]
+
</noinclude>
[[Category:Plugin Development]]
+
[[Category:Archived version Joomla! 1.5|{{PAGENAME}}]]
[[Category:Component Development]]
+

Latest revision as of 02:26, 11 June 2013

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
Params.editors.jpg

The editors parameter type provides a drop down list of the available and enabled WYSIWYG editors. If the parameter has a saved value this is selected when the page is first loaded. If not, the default value (if any) is selected.

The first option on the list is always '- Select Editor -' (which is a translatable string) and is given the value 0.

  • type (mandatory) must be editors.
  • name (mandatory) is the unique name of the parameter.
  • label (mandatory) (translatable) is the descriptive title of the field.
  • default (optional) is the default editor name. This is the name listed in the File column in the Plugin Manager screen.
  • description (optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.

Example XML parameter definition:

<param name="myeditor" type="editors" default="none" label="Select an editor" />

See also