I want to have a headline that looks like this....
<h2><span>blurb</span></h2>
I can easily create a style that appears in the styles drop down menu which inserts the <h2> or the <span> with just one style. What I can't do is get it to insert both. Any ideas if this is possible?
Have you tried using both <h2> and a class for the span in combination? So that you first mark the text as a <h2> and afterwards marks it with the other style?
Insert Span inside an H2 in TinyMCE
I want to have a headline that looks like this....
<h2><span>blurb</span></h2>
I can easily create a style that appears in the styles drop down menu which inserts the <h2> or the <span> with just one style. What I can't do is get it to insert both. Any ideas if this is possible?
P
Hi Paul
Have you tried using both <h2> and a class for the span in combination? So that you first mark the text as a <h2> and afterwards marks it with the other style?
Otherwise I'm thinking you should perhaps consider making a tinymce template for this? You can read more about it here: http://our.umbraco.org/wiki/how-tos/enabling-the-%27template%27-plugin-for-tinymce
I don't suppose adding the span manually through the HTML view is an option?
/Jan
I have a way, but not a nice one :p if you have a style 'h2' (style on h2) and a style 'test' (class .test) in your dropdown...
that should give you <h2><span class="test">your title</span></h2>
the reason for the . is that when you select the whole text it will make : <h2 class="test">your title</h2> ....
not an ideal way but a way.... don't know if there's a way to insert both at the same time, would be nice :)
is working on a reply...