UNPKG

jodit-pro-react

Version:

Jodit PRO is awesome and usefully wysiwyg editor with filebrowser

27 lines (23 loc) 938 B
import { DeepPartial } from 'jodit/esm/types'; import { Jodit } from 'jodit-pro/esm/index.js'; import { Config } from 'jodit-pro/esm/config'; import React from 'react'; /*! * Jodit Editor PRO (https://xdsoft.net/jodit/) * See LICENSE.md in the project root for license information. * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/ */ interface JoditEditorProps<T extends typeof Jodit = typeof Jodit> { JoditConstructor?: T; config?: DeepPartial<Config>; className?: string; id?: string; name?: string; onBlur?: (value: string, event: MouseEvent) => void; onChange?: (value: string) => void; tabIndex?: number; value?: string; editorRef?: (editor: Jodit) => void; } declare const JoditEditor: React.ForwardRefExoticComponent<JoditEditorProps<typeof Jodit> & React.RefAttributes<Jodit>>; export { type JoditEditorProps, JoditEditor as default };