import Component from 'flarum/Component'; import ItemList from 'flarum/utils/ItemList'; import listItems from 'flarum/helpers/listItems'; import Button from 'flarum/components/Button'; /** * The `TextEditor` component displays a textarea with controls, including a * submit button. * * ### Props * * - `submitLabel` * - `value` * - `placeholder` * - `disabled` */ export default class TextEditor extends Component { constructor(...args) { super(...args); /** * The value of the textarea. * * @type {[type]} */ this.value = m.prop(this.props.value || ''); } view() { return (