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
title: Inserting Formatted HTML content in another RadFlowDocument
2
+
title: Inserting Formatted HTML content in another RadFlowDocument using WordsProcessing
3
3
description: Learn how to insert formatted HTML text in specific locations within a RadFlowDocument and preserve the styling using Telerik WordsProcessing.
4
4
type: how-to
5
5
page_title: How to Insert HTML and Preserve the Styles in RadWordsProcessing Document
I need to insert HTML content into specific locations within a RadFlowDocument created using Telerik WordsProcessing. Additionally, I want to apply specific styles to the inserted content, such as font family, size, and weight.
27
+
Leanr how to insert HTML content into specific locations within a [RadFlowDocument]({%slug radwordsprocessing-model-radflowdocument%}) using Telerik [WordsProcessing]({%slug radwordsprocessing-overview%}).
21
28
22
-
This knowledge base article also answers the following questions:
23
-
- How to merge HTML content into a specific paragraph in Telerik WordsProcessing?
24
-
- How to style a RadFlowDocument content programmatically?
25
-
- How to use RadWordsProcessing to insert documents into specific table cells?
To insert HTML content into specific locations in a RadFlowDocument and apply styles, follow these steps:
35
+
To insert HTML content into specific locations in a RadFlowDocument, follow these steps:
30
36
31
-
### Inserting HTML Content into a Specific Location
37
+
1. Importing the HTML content: Use the [HtmlFormatProvider]({%slug radwordsprocessing-formats-and-conversion-html-htmlformatprovider%}) to import HTML content into a [RadFlowDocument]({%slug radwordsprocessing-model-radflowdocument%}).
32
38
33
-
Use the `HtmlFormatProvider` to import HTML content into a `RadFlowDocument`. Then, use the `RadFlowDocumentEditor`to insert the imported document into a specific location in your target document.
39
+
1. Inserting HTML Content into a Specific Location: Use the [RadFlowDocumentEditor]({%slug radwordsprocessing-editing-radflowdocumenteditor%}) to insert the imported document (step 1) into a specific location in your target document.
Apply styles to the entire imported document before merging it into the target document. Use the `ThemableFontFamily`, `FontSize`, and `FontWeight` properties.
- To target specific locations in the document, use the `RadFlowDocumentEditor` to navigate to the desired position.
77
+
- To target specific locations in the document, use the [RadFlowDocumentEditor]({%slug radwordsprocessing-editing-radflowdocumenteditor%}) to navigate to the desired position.
79
78
- Ensure the original document and imported HTML content are compatible in terms of styles and formatting.
0 commit comments