menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ResourcesModel - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ResourcesModel

    Represents options to configure additional scripts and CSS styles.

    Inheritance
    System.Object
    ResourcesModel
    Namespace: Syncfusion.Blazor.RichTextEditor
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ResourcesModel : Object
    Remarks

    This class is used to specify external resources, like scripts and styles, to be injected into an iframe in the editor.

    Constructors

    ResourcesModel()

    Declaration
    public ResourcesModel()

    Properties

    Scripts

    Specifies scripts to inject into the iframe.

    Declaration
    public string[] Scripts { get; set; }
    Property Value
    Type Description
    System.String[]

    An array of strings representing script URLs or code blocks.

    Remarks

    Use the Scripts array to load custom JavaScript into the editor’s iframe.

    Styles

    Specifies styles to inject into the iframe.

    Declaration
    public string[] Styles { get; set; }
    Property Value
    Type Description
    System.String[]

    An array of strings representing CSS URLs or styles.

    Remarks

    Use the Styles array to apply CSS styles within the editor’s iframe to control the appearance of content.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved