Solved by adding in tinymce.init() this:
extended_valid_elements: _old_settings_ + ",input[*]"
to enable all attributes for tag
문제
I want to create an article with a link that has rel
attribute, but Joomla is removing this attribute. How to make Joomla not to remove my attributes?
I have:
<a href = "http://site.com" rel="my_rel">
But at page a see:
<a href = "http://site.com">
I am using Joomla 2.5 and tinyMCE.
해결책
Solved by adding in tinymce.init() this:
extended_valid_elements: _old_settings_ + ",input[*]"
to enable all attributes for tag
다른 팁
I had a similar issue. I wanted to use the Font Awesome Icons which can e.g. be used with the <i>
tag and a corresponding attribute.
Adding i[*]
to the Valid Elements inside the plugin settings of TinyMCE solved the issue for me (Extensions -> Plugins > Editor - TinyMCE)
Note: It seems like, providing a value for the Valid Elements is overriding some default settings. Because I had to add ALL the tags I wanted to allow explicitly. E.g. i[*],span[*],br,h4,h3