diff --git a/app/assets/javascripts/discourse/templates/components/d-editor.hbs b/app/assets/javascripts/discourse/templates/components/d-editor.hbs index 61e771652ea..fe677e82039 100644 --- a/app/assets/javascripts/discourse/templates/components/d-editor.hbs +++ b/app/assets/javascripts/discourse/templates/components/d-editor.hbs @@ -45,9 +45,7 @@
-
- {{{preview}}} -
+
{{{preview}}}
{{plugin-outlet name="editor-preview" classNames="d-editor-plugin"}}
diff --git a/app/assets/stylesheets/common/d-editor.scss b/app/assets/stylesheets/common/d-editor.scss index f60937da414..329fc369c70 100644 --- a/app/assets/stylesheets/common/d-editor.scss +++ b/app/assets/stylesheets/common/d-editor.scss @@ -182,6 +182,9 @@ .d-editor-preview { background-color: $primary-very-low; padding: 5px; + &:empty { + padding: 0; + } } }