import { EventEmitter } from '../../stencil-public-runtime'; import { Jodit } from "jodit"; import type { Config } from "jodit/types/config"; export declare class DnnRichtext { /** Optional configuration for Jodit, see https://xdsoft.net/jodit/docs/classes/config.Config.html * This will be merged with the default options and passed to the editor. * If you prefer to not have to pass a full config object, * you can use 'customizeOptions' to modify the options before initializing the editor * instead of providing all options here. */ options?: Config; /** Sets the value of the content of the editor. */ value: string; /** Name of the field when used in a form. */ name?: string; /** Allows registering your own plugins. * The callback will be called with the editor instance as the only argument durig initialization. * All other behavior needs to be implemented in the plugin itself using editor.on("eventname"). * See https://xdsoft.net/jodit/examples/plugin/custom_plugin.html for an example. * Creating a plugin does NOT automatically add it to the toolbar, you need to do that yourself in 'options' or 'customizeOptions', * See https://xdsoft.net/jodit/examples/toolbar/custom_button.html for an example. */ plugins: { name: string; callback: (editor: Jodit) => void; }[]; /** Customize the options before initializing the editor, will have all the default options merged with 'options' if passed. * This is called last after merging default options with your custom 'options' and just before initializing the editor. */ customizeOptions?: (options: Config) => Config; host: HTMLDnnRichtextElement; watchValueChanged(newValue: string): void; /** Fires when the value changed. */ valueChange: EventEmitter; /** Fires during value input. */ valueInput: EventEmitter; internals: ElementInternals; focused: boolean; private textArea; private editor; private dnnDefaultOptions; componentDidLoad(): void; formResetCallback(): void; private setFormValue; render(): any; }