Skip to content

Discourse theme component for users to reposition and resize the preview

License

Notifications You must be signed in to change notification settings

Alteras1/discourse-editor-preview-position

Repository files navigation

Editor Preview Position

Allows the user to reposition and resize the preview in the composer for Discourse.

For more information, please see: Editor Preview Position - Discourse Meta

composer gif fullscreen composer gif

Also adds the option to style the composer in the same style as the fullscreen view.

clean style composer

Settings

Top Bar Preview Button

Moves the preview button to the top bar. Default: true

Screenshots

composer preview composer no preview fullscreen composer preview fullscreen composer no preview

Allow Top Bottom Previews

Allows the preview to be position above/below the editor. Default: true

Screenshots

composer top bottom fullscreen composer top bottom

Allow Resizable Horizontal Previews

Allow the previews to be resizable along the horizontal axis. Default: true

Allow Resizable Vertical Previews

Allow the previews to be resizable along the vertical axis. Default: true

Clean Composer Style

Alters the composer style to more closely match the fullscreen composer style. Default: false

Screenshots

clean style right clean style left clean style top clean style bottom

Compatibility

Only works in Discourse v3.2.0 and above due to usage of api.renderInOutlet() function and new glimmer components.

Local Development

For a guide to local theme, see Discourse Theme CLI or the Starter Guide.

discourse_theme watch ./

About

Discourse theme component for users to reposition and resize the preview

Topics

Resources

License

Stars

Watchers

Forks