CommandTool
MMO.editor · 1 symbol · generated 30 Sep 2026
CommandTool
Tool.js:190A tool that runs one of the browser's editing commands (document.execCommand).
- Namespace
MMO.editor- Extends
- Tool
Methods3
constructor(name, options)
Tool.js:200| name | string | |
| options = {} | Object | MMO.editor.Tool, plus: - command {string} the execCommand name - value {?string} its argument - state {boolean} false when the browser's queryCommandState does not say whether it is applied - tags {?string} a selector: the tool is applied when the selection is in one of these tags (the browser says a link is underlined, but the text has no <u>) |
apply(editor)
Tool.js:208| editor |
isActive(editor)
Tool.js:212| editor |