XML Specify Editor in Description Field

Need help with the Administration of your Joomla! 3.x site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
User avatar
DaveOzric
Joomla! Ace
Joomla! Ace
Posts: 1543
Joined: Sat May 22, 2010 10:29 pm
Contact:

XML Specify Editor in Description Field

Post by DaveOzric » Fri Jul 05, 2019 2:11 pm

Hello, I have an extension that has a text area description field but has no editor. I can change this in the XML to be type="editor" but it loads the default.

Is there a way to specify a different built-in editor besides the default one? I only need the most basic editor, not my default JCE. Can it be set to one of these other ones somehow?

So something like type="editor=tinymce" or something?

Thank you

SharkyKZ
Joomla! Ace
Joomla! Ace
Posts: 1589
Joined: Fri Jul 05, 2013 10:35 am
Location: Unknown

Re: XML Specify Editor in Description Field

Post by SharkyKZ » Fri Jul 05, 2019 2:57 pm


User avatar
DaveOzric
Joomla! Ace
Joomla! Ace
Posts: 1543
Joined: Sat May 22, 2010 10:29 pm
Contact:

Re: XML Specify Editor in Description Field

Post by DaveOzric » Fri Jul 05, 2019 3:22 pm

SharkyKZ wrote:
Fri Jul 05, 2019 2:57 pm
Yes, use "editor" attribute.

https://docs.joomla.org/Editor_form_field_type
Hi SkarkyKZ, that was not my question. I already did this. My question is how do you specify the NON-default editor?

It's a very small text area field and the full JCE layout is enormous, taking up too much room. I only want a simple editor to do line breaks and simple text formatting.

SharkyKZ
Joomla! Ace
Joomla! Ace
Posts: 1589
Joined: Fri Jul 05, 2013 10:35 am
Location: Unknown

Re: XML Specify Editor in Description Field

Post by SharkyKZ » Fri Jul 05, 2019 4:21 pm

Code: Select all

<field
	name="description"
	type="editor"
	editor="tinymce"
/>

User avatar
DaveOzric
Joomla! Ace
Joomla! Ace
Posts: 1543
Joined: Sat May 22, 2010 10:29 pm
Contact:

Re: XML Specify Editor in Description Field

Post by DaveOzric » Fri Jul 05, 2019 5:36 pm

That's what I was missing! Thanks, SharkyKZ.


Post Reply

Return to “Administration Joomla! 3.x”