Empty tags in custom module

Do you have an idea for the Joomla community that you can help implement? Discuss in here.
Locked
User avatar
oligalma
Joomla! Explorer
Joomla! Explorer
Posts: 291
Joined: Tue Feb 09, 2016 5:48 pm
Contact:

Empty tags in custom module

Post by 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 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[*][/b] but it seems not to work.
http://oligalma.com/en - Freelance PHP web developer

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

Re: Empty tags in custom module

Post by 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 | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Joomla! Core - Tamil (தமிழ்) Translation Team Coordinator
Former Joomla! Translations Coordination Team Lead
Eegan - Support the poor and underprivileged

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

Re: Empty tags in custom module

Post by 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: 28206
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: Empty tags in custom module

Post by 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 | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Joomla! Core - Tamil (தமிழ்) Translation Team Coordinator
Former Joomla! Translations Coordination Team Lead
Eegan - Support the poor and underprivileged


Locked

Return to “Joomla! Ideas Forum”