Right, so, again I’m looking at the problem of consistent formatting of client authored text in SharePoint. (Incredibly, it’s 4 years since I first looked at this).
Anyway, as a note to myself…
- SharePointBlues has good post on how to set up those custom styles.
- MSDN has an article about How to: Customize the SharePoint HTML Editor Field Control
- Don’t forget to style things like lists and tables.
- Don’t forget to set a minimum edit height.
- Regarding the difference between Markup Styles and Styles:
- the “Markup Styles”
- nest the text and its HTML tag within the html tag specified in the style if the tag to nest is a <span> element
- replace the current tag if is is not a <span> element
- remove all the styles for the children elements
- remove the html tag if the same style is applied a second time (this is a way of removing a Markup style for an end-user)
- the “Styles”
- nest the text in a <span> tag with the style class if the text is not already inside an HTML tag
- just add the class to the current HTML tag if this tag is not a <span> tag
- replace the class of the HTML tag if this tag is a <span> tag
- remove the html <span> tag if the same style is applied a second time (this is a way of removing a Style for an end-user)
- the “Markup Styles”
- Consult the Out-of-box styles as examples. It’s in LAYOUTS1033STYLESHtmlEditorStyles.css , and it’s actually a pretty well structured (if substantial) file.