Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Custom template for inserted image via tinymce


Go to End


1368 Views

Avatar
esakrielaart

Community Member, 59 Posts

17 September 2015 at 8:23pm

Hi all,

I try to achieve a custom html code when inserting media (images) through the CMS Content editor field. Now, when I insert an image, it creates an <img /> tag with corresponding attributes. In my case, I wish to make use of the HTML <figure> tag and insert the <img /> inside. This will allow me to use <figcaption> etc.

Can somebody explain me what template I need to overwrite or what other method is needed to achieve this goal? Please feel free to ask me for more details if the question is not clear.

Kind regards,
Maurice