feat: add a config object to the tinyMcePlugin model to accomodate configuration upfront

This commit is contained in:
Jacob Overgaard
2024-06-03 14:08:08 +02:00
parent 7aaeb09cc1
commit 5a53c1a7cc

View File

@@ -1,5 +1,6 @@
import type { UmbTinyMcePluginBase } from '@umbraco-cms/backoffice/tiny-mce';
import type { ManifestApi } from '@umbraco-cms/backoffice/extension-api';
import type { RawEditorOptions } from '@umbraco-cms/backoffice/external/tinymce';
export interface MetaTinyMcePlugin {
/**
@@ -26,6 +27,20 @@ export interface MetaTinyMcePlugin {
*/
icon?: string;
}>;
/**
* Sets the default configuration for the TinyMCE editor. This configuration will be used when the editor is initialized.
*
* @see [TinyMCE Configuration](https://www.tiny.cloud/docs/configure/) for more information.
* @optional
* @examples [
* {
* "plugins": "wordcount",
* "statusbar": true
* }
* ]
*/
config?: RawEditorOptions;
}
/**