wangeditor
Version:
wangEditor - 轻量级 web 富文本编辑器,配置方便,使用简单,开源免费
25 lines (24 loc) • 521 B
TypeScript
/**
* @description 差异备份
* @author fangzhicong
*/
import Cache from '../../../../utils/data-structure/cache';
import { Compile } from '../type';
import Editor from '../../../index';
export default class NodeCache extends Cache<Compile[]> {
editor: Editor;
constructor(editor: Editor);
observe(): void;
/**
* 编译并保存数据
*/
compile(data: MutationRecord[]): this;
/**
* 撤销
*/
revoke(): boolean;
/**
* 恢复
*/
restore(): boolean;
}