Protected_Protected_The dynamic component being shown inside the composer.
A reference to the text editor that allows text manipulation.
Fields of the composer.
The composer's intended height, which can be modified by the user (by dragging the composer handle).
If the composer was loaded and mounted.
ProtectedonThe composer's current position.
StaticPositionDetermine whether the body matches the given component class and data.
The component class to check against. Subclasses are accepted as well.
Clear the composer's content component.
Confirm with the user so they don't lose their content, then close the composer.
Check whether or not the user is currently composing a reply to a discussion.
Computed the composer's current height, based on the intended height, and the composer's current state. This will be applied to the composer content's DOM element.
Returns a promise that resolves when the text editor is ready. Resolves immediately if the editor is already available.
Exit fullscreen mode.
Take the composer into fullscreen mode. Has no effect if the composer is hidden.
Close the composer.
Determine whether or not the Composer is covering the screen.
This will be true if the Composer is in full-screen mode on desktop, or if we are on a mobile device, where we always consider the composer as full-screen..
Determine whether or not the Composer is visible.
True when the composer is displayed on the screen and has a body component. It could be open in "normal" or full-screen mode, or even minimized.
Load a content component into the composer.
Maximum height of the Composer.
Minimize the composer. Has no effect if the composer is hidden.
Minimum height of the Composer.
Configure when / what to ask the user before closing the composer.
The provided callback will be used to determine whether asking for confirmation is necessary. If the callback returns true at the time of closing, the provided text will be shown in a standard confirmation dialog.
Confirm with the user that they want to close the composer and lose their content.
Whether or not the exit was cancelled.
Resolve the editorReady promise. Called by the Composer component once
the TextEditor has been built and composer.editor is set.
Show the composer.
Promise that resolves once the text editor has been built and assigned. Reset each time a new composer body is loaded via
load().