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

How to remove the spans in H1 & H2 tags (tinymce editor)


Go to End


1669 Views

Avatar
mspacemedia

Community Member, 12 Posts

13 October 2010 at 12:19am

Does anyone know what file I need to alter to make tinymce slightly more semantically correct when outputting H1 and H2 tags through the content editor?

The current code looks like this:

<h1><span style="blah blah">Welcome</span></h1>

I want output like this:

<h1>Welcome</h1>

Regards,

Mark