You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this article you will see how to save the RadEditor's content with a default font.
13
+
In this article you will see how to save the RadEditor's content with a predefined font.
14
14
15
15
Generally, the editor's content is saved in a database without the external style sheets. This means only the inline styles will be preserved when the content is saved in a database.
16
16
@@ -47,7 +47,7 @@ You can use the editor's [get_html()]({%slug editor/client-side-programming/meth
@@ -84,7 +84,7 @@ You can fire a particular font command (e.g., `FontName` or `RealFontSize`). Thi
84
84
85
85
## Define external stylesheets and use CSS inliner tool that will convert them to inline styles
86
86
87
-
You can use any external CSS Inliner Tool to convert the external stylesheets of the editor to inline styles. For example you can find below an integration sample with the [PreMailer.Net](https://github.com/milkshakesoftware/PreMailer.Net) CSS Inliner Tool.
87
+
You can use any external CSS Inliner Tool to convert the external stylesheets of the editor to inline styles (**Example 4**).
88
88
89
89
1. Define the .css files via the CssFiles collection.
90
90
1. Read the .css files and place that content inside the style tag of the editor content.
varcontentInlineStyles=MyCSSInlinerTool.MoveCssInline(rawContent, true);//Where MyCSSInlinerTool is an external tool that that converts stylesheets to inline styles.
131
131
}
132
132
````
133
133
````VB
@@ -143,7 +143,7 @@ Protected Sub Button1_Click(sender As Object, e As EventArgs)
DimcontentInlineStyles=MyCSSInlinerTool.MoveCssInline(rawContent,True)'Where MyCSSInlinerTool is an external tool that that converts stylesheets to inline styles.
0 commit comments