Our Forum has Moved

This site is our old forum and is only here for achive until we get proper 301 redirects setup to make Google happy.

Please use our new community site - Our Umbraco - which contains an improved forum, documentation wiki, package repository and a member locator.

Go to Our Umbraco now

Learn everything about Umbraco
Richtext Editor & Semantic Markup Options
VirtualRichard
Posted: Wednesday, April 30, 2008 5:57:12 PM
Rank: Fanatic

Joined: 9/17/2007
Posts: 265
Location: London, UK.
If I have some content:

Code:
Heading 1
Paragraph

Heading 2
Paragraph

Etc...


What I'd like to see in the HTML is:

Code:
<h1>Heading 1</h1>
<p>Paragraph</p>

<h1>Heading 1</h1>
<p>Paragraph</p>

Etc.


But what I get is:

Code:
<p><span class="Heading2">Heading 1</span></p>
<p><span></span></p>

<p><span class="Heading2">Heading 1</span></p>
<p><span></span></p>


How do I go about being able to put proper headings into the copy? Styles are great but they just work with classes = not good enough?

Richard


2 * 3 * 3 * 37 : The prime factorisation of The Beast.
pkoutoul
Posted: Wednesday, April 30, 2008 6:40:36 PM

Rank: Fanatic

Joined: 8/9/2007
Posts: 292
Location: Kentucky, USA
I believe Doug Robar does a very nice job of explaining that in this thread:

http://forum.umbraco.org/yaf_postst4730_Customised-TinyMCE-Editor-to-Allow-Heading-Tags-to-be-applied.aspx



Pete Koutoulas • Fayette County Public Schools • Lexington, Kentucky
VirtualRichard
Posted: Thursday, May 01, 2008 10:01:29 AM
Rank: Fanatic

Joined: 9/17/2007
Posts: 265
Location: London, UK.
Well now, that looks like just the job. Thank you.

Very interesting discussion, though the participants missed one vital point. Some people like to use their own style sheets in their browser (I know I have sometimes!). They know what 'h1' is but certainly not .myLargeHeadingText ;)

Richard

2 * 3 * 3 * 37 : The prime factorisation of The Beast.
drobar
Posted: Thursday, May 01, 2008 10:28:33 AM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 2,020
Location: MA, USA; Cambridge, UK
You can always have multiple entries. For once site I did, I had 'Title' that was really 'h1' and also 'Heading 1' that was an 'h1'. There's certainly no reason you couldn't have 'H1' as an 'h1' as well.

cheers,
doug.

MVP 2007-2009 - Percipient Studios - Percipient Blog

The forum has moved

This forum is no longer in use, so you can't reply to this message - please go to Our Umbraco

Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.