@_sh/strapi-plugin-ckeditor
Version:
Integrates CKEditor 5 into your Strapi project as a fully customizable custom field. (Community Edition)
21 lines (20 loc) • 902 B
TypeScript
import React from 'react';
import type { InputProps } from '@strapi/strapi/admin';
import { type Preset } from '../config';
type EditorProviderBaseProps = Pick<InputProps, 'name' | 'disabled' | 'placeholder' | 'hint' | 'label' | 'required'> & {
labelAction?: React.ReactNode;
presetName: string;
wordsLimit?: number;
charsLimit?: number;
isFieldLocalized: boolean;
error?: string;
};
type EditorContextValue = EditorProviderBaseProps & {
preset: Preset | null;
};
type EditorProviderProps = EditorProviderBaseProps & {
children: React.ReactElement;
};
export declare function useEditorContext(): EditorContextValue;
export declare function EditorProvider({ name, disabled, error, placeholder, hint, label, labelAction, required, presetName, wordsLimit, charsLimit, children, isFieldLocalized, }: EditorProviderProps): import("react/jsx-runtime").JSX.Element;
export {};