Reference Source
import TextEditorButton from 'flarum/common/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

view(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 view(vnode: *): * source

Override:

Button#view

Params:

NameTypeAttributeDescription
vnode *

Return:

*