@editorjs/editorjs
Version:
Editor.js — open source block-style WYSIWYG editor with JSON output
18 lines (16 loc) • 335 B
TypeScript
/**
* ReadOnly API
*/
export interface ReadOnly {
/**
* Set or toggle read-only state
*
* @param {Boolean|undefined} state - set or toggle state
* @returns {Promise<boolean>} current value
*/
toggle: (state?: boolean) => Promise<boolean>;
/**
* Contains current read-only state
*/
isEnabled: boolean;
}