I want to allow some HTML tags (e.g. <figure>, <figcaption>) in longtext output.
I've tried to play with htmlaweb plugin and ElggAutoP class but not success.
I've tried to use TinyMCE and CKeditor WYSIWIG plugins also. No results.
My source code:
<figure class="image">
<img src="http://localhost/elgg/file/" />
<figcaption>Caption</figcaption>
</figure>
and this my output:
<img src="http://localhost/elgg/file/">
Caption
after saving of text.
What do I need to do?
Thanks.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Steve Clay@steve_clay
Steve Clay - 0 likes
- maxvin@maxvin
maxvin - 0 likes
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- Steve Clay@steve_clay
Steve Clay - 1 like
- maxvin@maxvin
maxvin - 0 likes
You must log in to post replies.Register for the [config, htmlawed] hook, which lets you alter the default configuration array.
Thanks for reply.
I did it already. No results.
Even with disabled htmLaweb plugin. This is not a htmLaweb config's issue.
@maxvin Just tested with CKeditor and disabled htmlawed: all works OK.
Elgg 1.12.4
I forgot the current htmlawed stable doesn't accept HTML5 elements. 1.2 has been in beta now over 2 years :(
Very thanks for this tip, Steve!
I've downloaded htmlawed-beta and now all works for me without any hooks.
Thank you again!