4

I'm developing a small Joomla plugin, but I can't figure out how to add a field that uses the normal Joomla article editor, and not only a text field. I have a field like this:

<field name="menu_one" filter="raw" type="textarea" default="" label="Field labbel" cols="100" rows="20" />

I would like to display a WYSIWYG editor like the mod_custom module does. How can I achieve that?

2

The mod-custom module seems to be using the code <customContent /> to add the editor. It's located right before the <files> declaration in the XML file, not sure if it can be used elsewhere.

5

I actually found another option: The editor field type.

<field 
   name="test1" 
   label ="Test Field" 
   type="editor" 
   width="300" 
   filter="safehtml" 
   editor="TinyMCE"/>

Using this field in my XML manifest, I'm able to add as many editors as needed.

  • This should be the accepted answer. – Ejaz Jan 20 '16 at 11:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.