Allowed custom content type when paste besides text/plain, text/html and images Only text types are supported, and do not add "text/" prefix to the type values
A callback to help get string template to announce, used for accessibility
The key of known announce data
A template string to announce, use placeholder such as "{0}" for variables if necessary
A function map to override default core API implementation Default value is null
Default options used for DOM to Content Model conversion
Default options used for Content Model to DOM conversion
Default paste type or function that returns the paste type. By default will use the normal (as-is) paste type.
Default format of editor content. This will be applied to empty content. If there is already content inside editor, format of existing content will not be changed. Default value is the computed style of editor content DIV
A callback to be invoked when any exception is thrown during disposing editor
The plugin that causes exception
The error object we got
Whether to skip the adjust editor process when for light/dark mode
Creator function used for creating the instance of roosterjs editor. Use this callback when you have your own sub class of roosterjs Editor or force trigging a reset of editor
Enabled experimental features
Whether editor should get focus once it is created Changing of this value after editor is created will not reset editor
A util function to generate color key for dark mode color. By default, the color key is generated from the light mode color. For example, color "#123456" will have the key "--darkColor__123456", and color "rgb(0,0,0)" will have key "--darkColor_rgb_0_0_0_". Pass in this function to customize this behavior. The return value must be a valid CSS variable, starts with "--"
A util function to transform light mode color to dark mode color Default value is to return the original light color
Color of the border of a selectedImage. Default color: '#DB626C'
If the editor is currently in dark mode
Initial Content Model
Existing known color pairs
An optional callback function that will be invoked before write content model back to editor. This is used for make sure model can satisfy some customized requirement
The model to fix up
List of plugins. The order of plugins here determines in what order each event will be dispatched. Plugins not appear in this list will not be added to editor, including built-in plugins. Default value is empty array.
The scroll container to get scroll event from. By default, the scroll container will be the same with editor content DIV
Undo snapshot. Use this parameter to provide an external storage of undo snapshots
Background color of a selected table cell. Default color: '#C6C6C6'
Customized trusted type handler used for sanitizing HTML string before assign to DOM tree This is required when trusted-type Content-Security-Policy (CSP) is enabled. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/trusted-types
Generated using TypeDoc
Properties for Rooster react component