You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: re-ordering a block with RTE kills the RTE #28
When you have a content block expanded with a RTE property inside and re-order the content block, the content in the RTE disappears.
Might be a Nested Content issue btw?
Hmm interesting, willl check it out soon. We collapse all blocks when reordering but that shouldn't do too much to the editors inside. Perhaps if content is hidden using an ng-if rather than an ng-show this messes up the RTE for example. We'll see.
Nothing related to ng-if or ng-show, but the RTE <iframe> will just be completely empty after having reordered it. Not reordering at all is fine (so enable reorder mode then immediately disable does not kill it). So seemingly rendering the <perplex-content-block> component again when its position is changed messes up the RTE inside for some reason.
I look at NestedContent, it seems they completely reload editors after reordering. So I'll do something similar now. When enabling Reorder the editor will be unloaded and when reordering is finished it'll be restored. Seems to work fine.
This should be part of a next release soon. Below you can see it works now:
@stefankip Fix is now available to test in 1.5.2-rc.1 on NuGet (prerelease). Make sure to clear any old JS cache. If it does not work for you, let me know.
Activity
PerplexDaniel commentedon Aug 7, 2020
Hmm interesting, willl check it out soon. We collapse all blocks when reordering but that shouldn't do too much to the editors inside. Perhaps if content is hidden using an
ng-ifrather than anng-showthis messes up the RTE for example. We'll see.Fix an issue where RTE is killed when reordering (#28)
PerplexDaniel commentedon Aug 7, 2020
So I had a quick look and I can reproduce this.
Nothing related to
ng-iforng-show, but the RTE<iframe>will just be completely empty after having reordered it. Not reordering at all is fine (so enable reorder mode then immediately disable does not kill it). So seemingly rendering the<perplex-content-block>component again when its position is changed messes up the RTE inside for some reason.I look at NestedContent, it seems they completely reload editors after reordering. So I'll do something similar now. When enabling Reorder the editor will be unloaded and when reordering is finished it'll be restored. Seems to work fine.
This should be part of a next release soon. Below you can see it works now:

stefankip commentedon Aug 7, 2020
Nice work mate! 💯
PerplexDaniel commentedon Aug 16, 2020
@stefankip Fix is now available to test in
1.5.2-rc.1on NuGet (prerelease). Make sure to clear any old JS cache. If it does not work for you, let me know.stefankip commentedon Aug 18, 2020
Yeah works for me :-)