HtmlEditorExtension.Import(String, Boolean, String, Action<String, IEnumerable<String>>) Method
In This Article
Imports the editor content from a specific file, based on the provided settings.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public static void Import(
string filePath,
bool useInlineStyles,
string contentFolder,
Action<string, IEnumerable<string>> onImport
)
#Parameters
Name | Type | Description |
---|---|---|
file |
String | A string value specifying the path to a file whose content should be imported. |
use |
Boolean | true to embed document formatting styles into the editor content; false to store formatting styles in a separate css file. |
content |
String | A string value specifying the path to a folder that should contain content files (such as images and/or css files) of the imported document. |
on |
Action<String, IEnumerable<String>> | A delegate method to execute after importing the document. |
See Also