controlItems() {
    const items = new ItemList();

    items.add('submit',
      Button.component({
        children: this.props.submitLabel,
        icon: 'fas fa-paper-plane',
        className: 'Button Button--primary',
        itemClassName: 'App-primaryControl',
        onclick: this.onsubmit.bind(this)
      })
    );

    if (this.props.preview) {
      items.add('preview',
        Button.component({
          icon: 'far fa-eye',
          className: 'Button Button--icon',
          onclick: this.props.preview,
          title: app.translator.trans('core.forum.composer.preview_tooltip'),
          config: elm => $(elm).tooltip()
        })
      );
    }

    return items;
  }
/**
   * Build an item list for the text editor controls.
   *
   * @return {ItemList}
   */
Build an item list for the text editor controls.
Build an item list for the text editor controls .
controlItems() {
    const items = new ItemList();
    items.add('submit',
      Button.component({
        children: this.props.submitLabel,
        icon: 'fas fa-paper-plane',
        className: 'Button Button--primary',
        itemClassName: 'App-primaryControl',
        onclick: this.onsubmit.bind(this)
      })
    );
    if (this.props.preview) {
      items.add('preview',
        Button.component({
          icon: 'far fa-eye',
          className: 'Button Button--icon',
          onclick: this.props.preview,
          title: app.translator.trans('core.forum.composer.preview_tooltip'),
          config: elm => $(elm).tooltip()
        })
      );
    }
    return items;
  }
controlItems ( ) { const items = new ItemList ( ) ; items . add ( 'submit' , Button . component ( { children : this . props . submitLabel , icon : 'fas fa-paper-plane' , className : 'Button Button--primary' , itemClassName : 'App-primaryControl' , onclick : this . onsubmit . bind ( this ) } ) ) ; if ( this . props . preview ) { items . add ( 'preview' , Button . component ( { icon : 'far fa-eye' , className : 'Button Button--icon' , onclick : this . props . preview , title : app . translator . trans ( 'core.forum.composer.preview_tooltip' ) , config : elm => $ ( elm ) . tooltip ( ) } ) ) ; } return items ; }
Build an item list for the text editor controls.
Build an item list for the text editor controls .