devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
21 lines (20 loc) • 773 B
JavaScript
import { RichEditClientCommand } from '../../common/commands/client-command';
export class RichEditLayoutApi {
constructor(core) {
this._core = core;
}
get showHiddenSymbols() {
return this._core.innerClientProperties.showHiddenSymbols;
}
set showHiddenSymbols(value) {
const command = this._core.commandManager.getCommand(RichEditClientCommand.ToggleShowWhitespace);
command.execute(true, value);
}
get showTableGridLines() {
return this._core.innerClientProperties.showTableGridLines;
}
set showTableGridLines(value) {
const command = this._core.commandManager.getCommand(RichEditClientCommand.ToggleShowTableGridLines);
command.execute(true, value);
}
}