Reference Source
import EditPostComposer from 'flarum/components/EditPostComposer.js'
public class | source

EditPostComposer

Extends:

flarum/components/ComposerBody~ComposerBody → EditPostComposer

The EditPostComposer component displays the composer content for editing a post. It sets the initial content to the content of the post that is being edited, and adds a header control to indicate which post is being edited.

Props

  • All of the props for ComposerBody
  • post

Static Method Summary

Static Public Methods
public static

initProps(props: *)

Member Summary

Public Members
public

Method Summary

Public Methods
public

Get the data to submit to the server when the post is saved.

public
public

init()

public

Static Public Methods

public static initProps(props: *) source

Params:

NameTypeAttributeDescription
props *

Public Members

public loading: boolean source

Public Methods

public data(): Object source

Get the data to submit to the server when the post is saved.

Return:

Object

public headerItems(): * source

Return:

*

public init() source

public onsubmit() source