Merge pull request #5719 from umbraco/v8/bug/5700

Fixes Macro Rendered in Richtext Editor when not configured to do so
This commit is contained in:
Warren Buckley
2019-06-26 10:07:44 +01:00
committed by GitHub

View File

@@ -108,7 +108,7 @@ namespace Umbraco.Web.Editors
//if it isn't supposed to be rendered in the editor then return an empty string
//currently we cannot render a macro if the page doesn't yet exist
if (pageId == -1 || publishedContent == null || !m.UseInEditor)
if (pageId == -1 || publishedContent == null || m.DontRender)
{
var response = Request.CreateResponse();
//need to create a specific content result formatted as HTML since this controller has been configured