Reference Source
import TextEditorButton from 'flarum/components/TextEditorButton'
public class | source

TextEditorButton

Extends:

src/common/Component.js~ComponentButton → TextEditorButton

The TextEditorButton component displays a button suitable for the text editor toolbar.

Static Method Summary

Static Public Methods
public static

initAttrs(attrs: *)

Method Summary

Public Methods
public

oncreate(vnode: *)

Inherited Summary

From class Button
public

view(vnode: *): *

protected

getButtonContent(children: *): *

Get the template for the button's content.

Static Public Methods

public static initAttrs(attrs: *) source

Params:

NameTypeAttributeDescription
attrs *

Public Methods

public oncreate(vnode: *) source

Params:

NameTypeAttributeDescription
vnode *