Failing Macros/blocks inside RTE
# help-with-umbraco
j
We just upgrade a project from Umbraco v10 to v13. We use some macro's in the RTE. Since v13 they are not always saved, when added. I tried using blocks instead, but this shows the same issues. What we did find out is that an configuration options we use
forced-root-block: false
, to make sure there is no html-element around the RTE output. But since version 6 of TinyMCE this option has been removed. When we use this configuration it still seems to work, but when adding a macro or block we get issues. When you add the macro, submit the change, open up the editor for the block again, the macro is not saved. This is also the case when using blocks. But when I remove the
forced-root-block: false
, macro's and blocks work correctly, but a root element is surrounding our RTE output. Which breaks the design of the website. Does anybody have the same issues, and knows how to fix this?
t
FYI I found this was solved for me in the latest v13 release.
j
Thanks , I will try it out in the newer version
t
No problem. Have you by chance found a way to migrate from macros to RTE blocks? Macros are going away completely as of v14.
j
Yeah, it is not that hard. They are pretty similar, so it was not that difficult to migrate. It's been a while, so I will look it up what I did, and share it here later today.
t
Thanks! I've only got say 10 different macro's to rebuild so that's not a big drama. The issue is migrating all the data from old to new because there are 1000s of instances in content. Any insights appreciated.
j
Ah yeah, we didn't have to do a migration. So I have no experience with that. Our client just had a couple of macro's and we are running them side by side at the moment in U13. The client is migrating them by hand one by one.
11 Views