@edtr-io/plugin-text
Version:
17 lines • 850 B
TypeScript
import { StateType, StatefulPlugin } from '@edtr-io/core';
import { Value, ValueJSON } from 'slate';
import { SlateEditorAdditionalProps } from './editor';
import { TextPluginOptions } from './types';
export declare const defaultNode = "paragraph";
export declare const textState: StateType.StateDescriptor<ValueJSON, ValueJSON, {
(): ValueJSON;
value: ValueJSON;
set(value: ValueJSON | ((currentValue: ValueJSON) => ValueJSON)): void;
}>;
export declare const createTextPlugin: (options: TextPluginOptions) => StatefulPlugin<StateType.StateDescriptor<ValueJSON, ValueJSON, {
(): ValueJSON;
value: ValueJSON;
set(value: ValueJSON | ((currentValue: ValueJSON) => ValueJSON)): void;
}>, SlateEditorAdditionalProps>;
export declare function isValueEmpty(value: Value): boolean;
//# sourceMappingURL=index.d.ts.map