umbraco / Umbraco-CMS

Umbraco is a free and open source .NET content management system helping you deliver delightful digital experiences.
https://umbraco.com
MIT License
4.47k stars 2.69k forks source link

RTE macro being stripped out #15903

Open shearer3000 opened 7 months ago

shearer3000 commented 7 months ago

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

Observed in Umbraco 13 including 13.1.1, 13.2.0

Bug summary

When adding a macro into the RTE and performing a save+publish on the page, the macro will seemingly disappear immediately from the WYSIWYG editor

image

Specifics

No response

Steps to reproduce

Investigating further, when adding the macro and inspecting the markup in chrome dev tools reveals the following markup (note the macro div within the p tag):

image

but if i click the 'view source code', then the markup is sansitised/reformatted (note not sitting within p the any longer)

image

Expected result / actual result

Expected results: inserting an RTE macro produces markup that will save and publish correctly Actual results: macro removed during save (unless 'viewing source' beforehand)

Is this already tracked as a known issue? I scanned the tracker but couldn't find an obvious one.

How can this be resolved?

github-actions[bot] commented 7 months ago

Hi there @shearer3000!

Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better.

We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.

We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions.

Thanks, from your friendly Umbraco GitHub bot :robot: :slightly_smiling_face:

andr317c commented 7 months ago

Hey! Thanks a lot for reporting this issue, I was unable to reproduce this on version 13.2.1. I tried reproducing the issue using the Login and Login status snippets for partial view macro files. afterwards, I inserted both Macros in a RTE. image I was also able to render it: image

Can you please provide the exact steps of how you encountered this issue from a clean install of Umbraco? 😄

oliemason commented 7 months ago

Hi @andr317c

Here is one way to replicate this issue, but we have seen this happen with pages that were not freshly created.

https://github.com/umbraco/Umbraco-CMS/assets/1691300/26e6ab8a-07d0-429d-ba0d-c6d26a1b9202


FYI

shearer3000 commented 6 months ago

hi @andr317c were you able to replicate the issue using the video demo above?

shearer3000 commented 3 months ago

Hi Umbraco team @andr317c - can we expect any updates for this one in Umbraco 13?

nzdev commented 1 month ago

https://github.com/umbraco/Umbraco-CMS/pull/17008 Maybe this is related?