Index

Format

MMO.editor.tools · 1 symbol · generated 30 Sep 2026

class

Format

blocks.js:15

The kind of the current block -- paragraph, heading, code block -- as a drop-down list.

class MMO.editor.tools.Format extends MMO.editor.Tool
Namespace
MMO.editor.tools
Extends
Tool

Methods5

constructor(name, options)

blocks.js:16
constructor(name, options = {})
name
options = {}

apply(editor, tag)

blocks.js:40
apply(editor, tag)
editorHTMLElement
tagstringone of the keys of formats

current(editor)

blocks.js:49
current(editor)
editorHTMLElement
returnsstringthe tag of the current block, when it is one of the formats

update(editor, node)

blocks.js:55
update(editor, node)
editor
node