MMOframework
Pourquoi l'IA Playground Bibliothèques Documentation Rechercher Agence
FR EN
Index

Format

MMO.editor.tools · 1 symbole · générée le 27 Oct 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
Espace de noms
MMO.editor.tools
Étend
Tool

Méthodes5

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
retournestringthe tag of the current block, when it is one of the formats

update(editor, node)

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