Can we modify the rich text editor in Sitecore Pages, or at least add a new Paragraph style under this dropdown?
As far as I know, in Experience Editor or Content Editor, we can customize this by setting the source field of the rich text field.
Can we modify the rich text editor in Sitecore Pages, or at least add a new Paragraph style under this dropdown?
As far as I know, in Experience Editor or Content Editor, we can customize this by setting the source field of the rich text field.
To customise RichText editor on XMC page editor you can use ckeditor
. To enable this and how can you configure heading in your page editor you can refer below guidelines:
How to integrate ckeditor
in your Next.js
app : https://ckeditor.com/docs/ckeditor5/latest/getting-started/installation/next-js.html
How to configure Headings
for your RichText Editor: https://ckeditor.com/docs/ckeditor5/latest/features/headings.html#configuration
Hope this can help !
web.config
file check the value of setting WebStylesheet
. By default, it is /default.css
. Open that file (default.css file located at the root folder of the website) and add your CSS classes here like the following:ToolsFile.xml
file located at rootfolder\sitecore\shell\Controls\Rich Text Editor\
folder and add CSS class entries in the <classes>
node like followingHere name
property is a text displayed in a dropdown of Apply Css Classes in RichText Editor and the value
property must be the same as your class name defined in the default.css file
.
source property
of it is set to either Rich Text Full or Rich Text Medium
It’s done. Check your item’s rich text editor field to see the list of CSS classes in the dropdown. If the classes are not there, clear your Sitecore Cache (/sitecore/admin/cache.aspx) and browser cache
. If it still does not appear, restart your IIS website.
Reference: Apply CSS classes in Rich Text Editor
Adding custom CSS Class to Sitecore Rich Text Editor