Empty tags in custom module

Do you have an idea for the Joomla community that you can help implement? Discuss in here.
Forum rules
Global Rules
Posting guidelines for this board <-- please read before posting.

Joomla Idea Pool <-- Add your suggestions for future versions of Joomla and vote on current suggestions.
User avatar
oligalma
Joomla! Explorer
Joomla! Explorer
Posts: 294
Joined: Tue Feb 09, 2016 5:48 pm
Contact:

Empty tags in custom module

Postby oligalma » Sat Mar 18, 2017 3:10 pm

I tried to enter Font awesome tags in custom module and it seems not possible, because the editor deletes empty tags. For example, I tried this:

Code: Select all

<div>
<a href="http://facebook.com"><span class="fa fa-facebook fa-lg"> </span></a>
<a href="http://twitter.com"><span class="fa fa-twitter fa-lg"> </span> </a>
<a href="http://plus.google.com"><span class="fa fa-google-plus fa-lg"> </span></a>
<a href="http://[youtube].com"><span class="fa [youtube] fa-lg"> </span></a>
<a href="http://linkedin.com"><span class="fa fa-linkedin fa-lg"> </span></a>
</div>


Therefore, I suggest that the editor don't delete these kind of tags.

Note: In Plugins > Tiny Mce editor > Extended Valid Elements I already have span[*] but it seems not to work.
http://oligalma.com/en - Freelance PHP web developer

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 26306
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: Empty tags in custom module

Postby imanickam » Sat Mar 18, 2017 4:38 pm

Review of the discussion viewtopic.php?f=706&t=947572 could be of help.

However, I was not successful in creating what you have posted.

In these circumstances, I use the option "Editor - None" which works fine.
- Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
http://www.eegan.org - helping the poor and underprivileged
educate. empower. enrich.
Support the poor and underprivileged

User avatar
oligalma
Joomla! Explorer
Joomla! Explorer
Posts: 294
Joined: Tue Feb 09, 2016 5:48 pm
Contact:

Re: Empty tags in custom module

Postby oligalma » Sun Mar 19, 2017 5:36 am

Thanks for your answer. But "Editor - None" is a general option in Global configuration. Is there a way to disable the editor in a specific module?
http://oligalma.com/en - Freelance PHP web developer

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 26306
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: Empty tags in custom module

Postby imanickam » Sun Mar 19, 2017 5:53 am

The following will work.

- In the Global Configuration, for the option "Default Editor" choose the value "Editor - None"
- Edit/create the module of the type "Custom" with the code you referenced
- In the Global Configuration, for the option "Default Editor" choose the value "Editor - TinyMCE"

Note: Only thing to keep in mind is that whenever, you edit this module, you have to remember to choose the value "Editor - None" for the Global Configuration option "Default Editor".
- Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
http://www.eegan.org - helping the poor and underprivileged
educate. empower. enrich.
Support the poor and underprivileged


Return to “Joomla! Ideas Forum”

Who is online

Users browsing this forum: No registered users and 2 guests