From 9a52a44d097d3dd49d7b063e77c42190dc71a61b Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Tue, 4 Feb 2020 11:41:45 +0100 Subject: [PATCH] DEV: Add outlet args to `editor-preview` outlet (#8835) Those are the same arguments that are passed into `after-d-editor` outlet. This will enable plugins that attach to editor preview to be conditionally enabled, usually only for the composer. Plugins that will use this: discourse-canned-responses, discourse-zoom. --- .../javascripts/discourse/templates/components/d-editor.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/templates/components/d-editor.hbs b/app/assets/javascripts/discourse/templates/components/d-editor.hbs index 5acae90928b..f868131b63b 100644 --- a/app/assets/javascripts/discourse/templates/components/d-editor.hbs +++ b/app/assets/javascripts/discourse/templates/components/d-editor.hbs @@ -47,7 +47,7 @@
{{{preview}}}
- {{plugin-outlet name="editor-preview" classNames="d-editor-plugin"}} + {{plugin-outlet name="editor-preview" classNames="d-editor-plugin" args=outletArgs}}