UNPKG

@wpmvc/classic-editor

Version:

A React component for integrating WordPress' classic editor using wp.editor API

20 lines (19 loc) 554 B
type ClassicEditorProps = { value: string; onChange: (value: string) => void; height?: number; useExtendStyles?: boolean; hasMedia?: boolean; }; declare global { interface Window { wp: { editor: { initialize: (id: string, settings: any) => void; remove: (id: string) => void; }; }; } } export default function ClassicEditor({ value, onChange, height, useExtendStyles, hasMedia, }: ClassicEditorProps): import("react/jsx-runtime").JSX.Element; export {};