Align
MMO.editor.tools · 1 symbol · generated 30 Sep 2026
The alignment of the current block: a button showing it, which opens the four choices.
class MMO.editor.tools.Align extends MMO.editor.PopoverTool- Namespace
MMO.editor.tools- Extends
- PopoverTool
Methods5
constructor(name, options = {})renderPopover(editor)apply(editor, align)| editor | HTMLElement | |
| align | string | left, center, right or justify |
current(editor)| editor | HTMLElement | |
| returns | string | the alignment of the current block |
update(editor, node)