Summary | Allows the user to reposition and resize the preview in the composer for Discourse. | |
Repository | GitHub - Alteras1/discourse-editor-preview-position: Discourse theme component for users to reposition and resize the preview | |
Install Guide | How to install a theme or theme component | |
New to Discourse Themes? | Beginner’s guide to using Discourse Themes |
Install this theme component
Allows the user to reposition and resize the preview in the composer for Discourse. Double click the dragbar to reposition the split to be in the center.
Fullscreen preview
Also adds the option to style the composer in the same style as the fullscreen view.
Settings
Top Bar Preview Button
Moves the preview button to the top bar. Default: true
Allow Top Bottom Previews
Allows the preview to be position above/below the editor. Default: true
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
.
This setting is more of a personal preference. During the development of this theme component, I found the differences between the fullscreen and the non fullscreen editor to be distracting. As such, I added this styling to help create a more “unified” experience. By default it is off.
Compatibility & Notes
Only works in Discourse v3.2.0 and above due to usage of api.renderInOutlet()
function and new glimmer components.
Since the side by side preview only happens in desktop views, this theme component only applies to desktop views.
The theme I am using in my screenshots is the Graceful theme.