Covered in this section:
The TinyMCE.Blazor Editor component accepts the following properties:
<Editor
Id="uuid"
Inline=false
CloudChannel="{productmajorversion}"
Value=""
Disable=false
JsConfSrc="path_to_jsObj"
Conf="@yourConf"
ApiKey="your-api-key"
LicenseKey="your-license-key"
ScriptSrc="/path/to/tinymce.min.js"
ClassName="tinymce-wrapper"
/>None of the configuration properties are required for the TinyMCE Blazor integration to work.
{cloudname} API key. Required for deployments using the {cloudname} to provide the {productname} editor.
Type: String
Default value: 'no-api-key'
Specifies the {cloudname} channel to use. For information on {productname} development channels, see: Specifying the {productname} editor version deployed from Cloud.
Type: String
Default value: '{productmajorversion}'
Possible values: '{productmajorversion}', '{productmajorversion}-testing', '{productmajorversion}-dev', '{productminorversion}'
Specified an Id for the editor. Used for retrieving the editor instance using the tinymce.get('ID') method.
Type: String
Default value: Automatically generated UUID
Specifies the class of the Editor’s container div in the component. This div is the parent of the Editor and adding styles to it will not add styles to the editor.
Type: String
Default value: 'tinymce-wrapper'
Set the editor to inline mode.
Type: Boolean
Default value: false
Sets the editor to a disable state.
Type: Boolean
Default value: false
Sets the editor to readonly mode.
Type: Boolean
Default value: false
Use a JS object as base configuration for the editor by specifying the path to the object relative to the window object.
Type: String
Default value: null
Specifies the {productname} license key. Required for self-hosted deployments of {productname}. This property is not required for deployments using the {cloudname}. For more information on licensing, see: License key.
Type: String
Use the ScriptSrc property to specify the location of {productname} to lazy load when the application is not using {cloudname}. This setting is required if the application uses a self-hosted version of {productname}, such as the {productname} NuGet package or a .zip package of {productname}.
Type: String
Specify a set of properties for the Tinymce.init method to initialize the editor.
Type: Dictionary<string, object>
Default value: null
The editor component allows developers to bind the contents of editor to a variable. By specifying the @bind-Value directive, developers can create a two-way binding on a selected variable.
Starting from TinyMCE.Blazor v0.0.4, the editor exposes the @bind-Text property, which developers can bind to retrieve a read-only value of the editor content as text. Changes will not propagate up to the editor if the text bound variable changes. It will only propagate changes from the editor.