how to load css classes from my own project specfic css in Sitecore's RAD editor?

本秂侑毒 提交于 2019-12-11 01:01:13

问题


how to load css classes from my own project specfic css in Sitecore's RAD editor? I want to give option to client to add predefined css class to any needed element.


回答1:


Put the css in default.css in your websites' root folder and restart IIS. Sitecore RAD editor should pick up the classes, although we found it could take a couple of restarts.




回答2:


Depending on the version of Sitecore you're using there's different ways since in 6.4 there is a new wysiwyg from Telerik's updated library.

pre 6.4 Multisite Rich Text Editor Custom CSS

6.4+ Multisite Rich Text Editor Custom Css




回答3:


As stated by Adam you can add this to the default.css file. However if you want to move the CSS file else where then you need to updated the following setting in the web.config (this is the Sitecore 6 setting name, it maybe different in early versions):

<setting name="WebStylesheet" value="default.css" />  


来源:https://stackoverflow.com/questions/2197212/how-to-load-css-classes-from-my-own-project-specfic-css-in-sitecores-rad-editor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!