How to add a custom paragraph style to my SharePoint 2013 blog?

I have a Share Point 2013 website and blog. Since my posts will contain a lot of special textual content, I need to add more styles that I will use for all posts. As a rule, all styles appear in the top panel of the feed when creating a new message.

Style selection

How to add a new style to Share Point Designer 2013? What do I need to do?

+4
source share
2 answers

, , RichText SharePoint. , , , CSS, SharePoint . SharePoint Designer, CSS -.

"" CSS :

.ms-rteStyle-MySpecialStyle {
    -ms-name: "My special style";
    font-style: bold;
    color: red;
}
h2.ms-rteElement-SpecialHeading{
    -ms-name: "Special Heading";
    font-style: bold;
    color: green;
}

- rteElement vs. rteStyles, : . , , . H1, H2, SPAN, - SharePoint span .

, , :

+4

,

h2.ms-rteStyle-customHeading
{-ms-name:"custom heading";
 color:gray;  }

.ms-rteElement-customTest 
-ms-name:"customize text";
{color:black; }
0

Source: https://habr.com/ru/post/1527671/


All Articles