devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
12 lines (11 loc) • 491 B
JavaScript
import { RichEditClientCommand } from '../client-command';
import { HeaderFooterCommandBase } from './header-footer-command-base';
export class CloseHeaderFooterCommand extends HeaderFooterCommandBase {
executeCore(_state, _options) {
return this.control.commandManager.getCommand(RichEditClientCommand.ChangeActiveSubDocumentToMain)
.execute(this.control.commandManager.isPublicApiCall);
}
isEnabledInReadOnlyMode() {
return true;
}
}