UNPKG

devexpress-richedit

Version:

DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.

21 lines (20 loc) 696 B
import { History } from './model/history/base/history'; import { ModelManipulator } from './model/manipulators/model-manipulator'; export class ModelManager { model; modelManipulator; history; richOptions; constructor(model, options, batchUpdatableObject) { this.model = model; this.richOptions = options; this.modelManipulator = new ModelManipulator(this, batchUpdatableObject); this.history = new History(options.control); } } export class ClientModelManager extends ModelManager { get clientMode() { return true; } } export class ServerModelManager extends ModelManager { get clientMode() { return false; } }