Is there a way for a macro inside a rich text editor to display differently in the editor to how it looks on the website
Is there a way for a macro inside a rich text editor to display differently in the editor to how it looks on the website ?
I was thinking of having some code in the macro template that checks if it is being displayed in the editor or on the website. But not sure how to do it or if it can be done.
Is there a way for a macro inside a rich text editor to display differently in the editor to how it looks on the website
Is there a way for a macro inside a rich text editor to display differently in the editor to how it looks on the website ?
I was thinking of having some code in the macro template that checks if it is being displayed in the editor or on the website. But not sure how to do it or if it can be done.
Hope that makes sense
Thanks
I think I have found it....
if (UmbracoContext is not null && UmbracoContext.IsFrontEndUmbracoRequest()) { Frontend }
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.