Bonjour,
voici la procédure pour DotNetNuke 5.4 et ultérieur :
- Create a file called RadEditor.css your portal root.
- Copy all the content specific styles from skin.css into this file leaving out layout or module specific styles. The editor will copy most of these already so only focus on ones needed in the styles drop down and overides for layout.
- Be sure to add body,html{background-color:#fff;text-align:left;} to keep the edit area useable.
- Narrow the focus of the classes and IDs (For instance, a ul specific style would be ul.MyStyle{...} not .MyStyle{...} ). Then the editor will put at tag icon beside the style which will help users understand when and where to use the classes.
- The classes should be “declared” in a clean manner. The style ul.MyStyle li won’t make the parent ul style available. A rule like ul.MyStyle rule must exist first.
- Open the file /Providers/HtmlEditorProviders/Telerik/Config/ConfigDefault.xml and make the follow changes:
- Adding < property name="UseSharedToolbar">true < /property> is suppose to help when two or more editors are on the same page.
- Change < property name="NewLineBr">true < /property> to false for better paragraph formating.
- Review the StripFormattingOnPaste and ContentFilters settings for your own taste. ConfigDocumented.xml explains the settings a bit.
- Add < property name="CssFiles">[PortalRoot]RadEditor.css< /property>
- Add < property name="ImageManager.ViewPaths">[PortalRoot]images so the images folder can be seen in the image manager.
- Open the file /Providers/HtmlEditorProviders/Telerik/Config/ToolsDefault.xml (and min for simular changes)
- Add lines to the < classes> section to reflect the styles you want in the drop down. (for instance < class value="ul.MyStyle" name="List-Styled-Myway">
Very important to set the value to exactly what is in the style sheet or it won’t display.
- Remove the lines:
- < tool shortcut="CTRL+SHIFT+F" name="FontName">
- < tool shortcut="CTRL+SHIFT+P" name="RealFontSize">
- < tool name="ForeColor">
- < tool name="BackColor">
Unless you like 24pt pink Comic Sans text randomly place on your site, not judging here.
Be sure to add htmtemplate to the host settngs for allowed file types. This will enable the templates feature if you upgrade from DNN5.4.x to 5.4.2. Also, only DNN5.4.2+ is able to insert the templates.
Source :
Forum officiel