If you're seeking personalized designs for the SharePoint RichText editor, the good news is it can easily be achieved by implementing custom CSS. SharePoint will automatically display the new text styles once the custom CSS is added. This customization can also be done through SharePoint Designer, especially if you have a customized master page or specify the alternate CSS location.
The CSS code for this "magical" transformation looks something like this:
.ms-rteStyle-CustomStyle1 {
-ms-name: "Custom Style 1";
font-weight: bold;
color: blue;
}
h2.ms-rteElement-TitleStyle {
-ms-name: "Title Style";
font-weight: bold;
color: purple;
}
The distinction between rteElement
and rteStyles
lies in how you apply styles to specific elements or text passages. By examining the Page Elements and Text Styles in your SharePoint environment, the difference becomes clearer as one targets elements like H1, H2, and SPAN, while the other focuses on styling text within a span
tag.
For further guidance and instructions, here are a few insightful blog articles to kickstart your customization journey:
- Enhance Your SharePoint Experience with Custom Ribbon Styles
- Unleash Your Creativity: Customize Rich Text Editor Styles in SharePoint
- Breaking Boundaries: Implementing Custom Styles in SharePoint 2013