wangeditor
Version:
wangEditor - 轻量级 web 富文本编辑器,配置方便,使用简单,开源免费
32 lines (31 loc) • 640 B
TypeScript
/**
* @description 整合差异备份和内容备份,进行统一管理
* @author fangzhicong
*/
import NodeCache from './node';
import HtmlCache from './html';
import Editor from '../../index';
export default class ContentCache {
editor: Editor;
/**
* 内容备份的管理器
*/
cache?: HtmlCache | NodeCache;
constructor(editor: Editor);
/**
* 初始化绑定
*/
observe(): void;
/**
* 保存
*/
save(mutations: MutationRecord[]): void;
/**
* 撤销
*/
revoke(): boolean | undefined;
/**
* 恢复
*/
restore(): boolean | undefined;
}