Skip to content

Commit fa90c73

Browse files
authored
Merge pull request #6772 from syncfusion-content/983303-updatediframe-d
983303: Updated iframe.md, image.md, import-and-export.md, import-export.md, inline-mode.md
2 parents 938616d + 61679d4 commit fa90c73

File tree

4 files changed

+389
-30
lines changed

4 files changed

+389
-30
lines changed

blazor/rich-text-editor/iframe.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
layout: post
3-
title: IFrame Rendering in Blazor RichTextEditor | Syncfusion
4-
description: Checkout and learn here all about IFrame Rendering in Syncfusion Blazor RichTextEditor component and more.
3+
title: IFrame Rendering in Blazor Rich Text Editor | Syncfusion
4+
description: Checkout and learn here all about IFrame Rendering in Syncfusion Blazor Rich Text Editor component and more.
55
platform: Blazor
66
control: RichTextEditor
77
documentation: ug
88
---
99

10-
# Iframe Editable in Blazor RichTextEditor
10+
# Iframe Editable in Blazor Rich Text Editor
1111

12-
When the `RichTextEditorIframeSettings` option is set to [RichTextEditorIframeSettings.enabled](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.RichTextEditor.RichTextEditorIFrameSettings.html#Syncfusion_Blazor_RichTextEditor_RichTextEditorIFrameSettings_Enable), the editor creates the iframe element as the content area on component initialization, which is used to display and edit the content. The editor only displays the body tag of an `<iframe>` document in the content area.
12+
When the `RichTextEditorIframeSettings` option is set to [RichTextEditorIframeSettings.Enable ](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.RichTextEditor.RichTextEditorIFrameSettings.html#Syncfusion_Blazor_RichTextEditor_RichTextEditorIFrameSettings_Enable), the editor creates an iframe element as the content area during initialization, which is then used to display and edit the content. In iframe mode, the editor displays only the body tag of the iframe document within the content area.
1313

14-
Basically, in an iframe mode, you have the entire document but only the editor content, and you can also use styles and scripts only for the particular editor.
14+
In iframe mode, the editor content is hosted in an isolated document. Only the editor's content is shown, and styles or scripts can be applied specifically to that editor without affecting the rest of the page.
1515

1616
{% tabs %}
1717
{% highlight cshtml %}
@@ -26,11 +26,11 @@ Basically, in an iframe mode, you have the entire document but only the editor c
2626
{% endhighlight %}
2727
{% endtabs %}
2828

29-
![Blazor RichTextEditor with iframe](./images/blazor-richtexteditor-iframe.png)
29+
![Blazor Rich Text Editor with iframe](./images/blazor-richtexteditor-iframe.png)
3030

3131
## IFrame attributes
3232

33-
You can add an additional attribute to the body tag of an `<iframe>` element by using the [RichTextEditorIframeSettings.Attributes](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.RichTextEditor.RichTextEditorIFrameSettings.html#Syncfusion_Blazor_RichTextEditor_RichTextEditorIFrameSettings_Attributes) property. This property contains name or value pairs in string format. It is used to override the default appearance of the content area.
33+
Add additional attributes to the body element of the iframe document using the[RichTextEditorIframeSettings.Attributes](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.RichTextEditor.RichTextEditorIFrameSettings.html#Syncfusion_Blazor_RichTextEditor_RichTextEditorIFrameSettings_Attributes) property. This property accepts namevalue pairs in string format and can be used to override the default appearance of the content area.
3434

3535
{% tabs %}
3636
{% highlight cshtml %}
@@ -40,13 +40,13 @@ You can add an additional attribute to the body tag of an `<iframe>` element by
4040
{% endhighlight %}
4141
{% endtabs %}
4242

43-
![Blazor RichTextEditor with iframe attribute](./images/blazor-richtexteditor-iframe-attribute.png)
43+
![Blazor Rich Text Editor with iframe attribute](./images/blazor-richtexteditor-iframe-attribute.png)
4444

4545
## Adding external CSS/Script file
4646

47-
The editor offers to add an external CSS file to style the `<iframe>` element. Using the [RichTextEditorIframeSettings.Resources](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.RichTextEditor.RichTextEditorIFrameSettings.html#Syncfusion_Blazor_RichTextEditor_RichTextEditorIFrameSettings_Resources) property, you can easily change the appearance of the editor's content by using an external CSS file.
47+
The editor supports adding external CSS files to style the iframe document by using the [RichTextEditorIframeSettings.Resources](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.RichTextEditor.RichTextEditorIFrameSettings.html#Syncfusion_Blazor_RichTextEditor_RichTextEditorIFrameSettings_Resources) property. This allows changing the appearance of the editor content with an external stylesheet.
4848

49-
Similarly, add the external script file to the `<iframe>` element using the `RichTextEditorIframeSettings.Resources` property, and it will provide the additional functionalities to the Rich Text Editor.
49+
Similarly, add external script files to the iframe document using the same `RichTextEditorIframeSettings.Resources` property to provide additional functionality for the Rich Text Editor.
5050

5151
{% tabs %}
5252
{% highlight cshtml %}
@@ -72,6 +72,6 @@ Similarly, add the external script file to the `<iframe>` element using the `Ric
7272
{% endhighlight %}
7373
{% endtabs %}
7474

75-
![Blazor RichTextEditor with external css/script](./images/blazor-richtexteditor-iframe-external-CSS-script.png)
75+
![Blazor Rich Text Editor with external CSS and script](./images/blazor-richtexteditor-iframe-external-CSS-script.png)
7676

77-
N> You can refer to our [Blazor Rich Text Editor](https://www.syncfusion.com/blazor-components/blazor-rich-text-editor) feature tour page for its groundbreaking feature representations. You can also explore our [Blazor Rich Text Editor](https://blazor.syncfusion.com/demos/rich-text-editor/overview?theme=bootstrap5) example to knows how to render and configure the rich text editor tools.
77+
N> Visit the [Blazor Rich Text Editor](https://www.syncfusion.com/blazor-components/blazor-rich-text-editor) feature tour for an overview of its capabilities. Explore the [Blazor Rich Text Editor](https://blazor.syncfusion.com/demos/rich-text-editor/overview?theme=bootstrap5) demo to learn how to render and configure the editor tools.

0 commit comments

Comments
 (0)