Featured Post
Apply Custom CSS Styles to Sitecore Rich Text Editor
- Get link
- X
- Other Apps
The Sitecore Content Management System (CMS) is a simple and centralized content management system to manage the content. It provides a single source of truth for Content delivery because you can create content once and reuse across multiple channels.
The Sitecore CMS also provides flexibility to the content creation team so that they can create content for target audiences to engage them.
Recently I had a discussion with Content Authoring Team and UX Team, and they raised the concern that it’s very difficult to verify the look & feel of styling provided by UX Team while creating the content.
I thought of having the Content Preview instance and had discussion with the team, and due to time/budget need to drop the idea, so I suggested to add the Cascading Style Sheets (CSS) to the Sitecore Rich Text Editor to provide matching style as per the HTML mock-up for components.
Regarding this I searched over the internet and found useful articles present in Credit / Reference section.
I have gone through the resources, and thought to give a try on following Technical
Stack:
• Sitecore Environment: Sitecore Experience Platform
10.2
• Sitecore Implementation: Sitecore Headless Services (using ReactJS)
<!-- Including new css file into <Web Root Folder>\default.css file --> @import "/assets/css/Sitecore.Custom.RTE-Styles.css";
Please keep in mind that it will first load the new file css classes then default.css file css classes, so changes of default.css file would be applied.
@media only screen and (max-width: 1279px) { h1.CT { /* H1 */ color: #ffffff; font-family: "Arial"; font-style: normal; font-weight: 700; font-size: 20px; line-height: 20px; } } @media only screen and (min-width: 1280px) { h1.CT { /* H1 */ color: #ffffff; color: #ffffff; font-family: "Arial"; font-style: normal; font-weight: 700; font-size: 30px; line-height: 50px; } }
h1.CT { /* H1 */ color: #ffffff; font-family: "Arial"; font-style: normal; font-weight: 700; font-size: 20px; line-height: 20px; }
- Get link
- X
- Other Apps
Comments