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

TextEditorButton

Extends:

src/common/components/Button.js~Button → TextEditorButton

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

Automatically creates tooltips using the Tooltip component and provided text.

Attrs

  • title - Tooltip for the button

Static Method Summary

Static Public Methods
public static

initAttrs(attrs: *)

Method Summary

Public Methods
public

view(vnode: *): *

Static Public Methods

public static initAttrs(attrs: *) source

Params:

NameTypeAttributeDescription
attrs *

Public Methods

public view(vnode: *): * source

Params:

NameTypeAttributeDescription
vnode *

Return:

*