Skip to content

Bug: re-ordering a block with RTE kills the RTE #28

Closed

Description

@stefankip

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?

Activity

  1. PerplexDaniel commented on Aug 7, 2020

    @PerplexDaniel
    Member

    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.

  2. self-assigned this
    on Aug 7, 2020
  3. added
    accepted
    bug
    on Aug 7, 2020
  4. PerplexDaniel commented on Aug 7, 2020

    @PerplexDaniel
    Member

    So I had a quick look and I can reproduce this.

    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:
    contentblocks-rte

  5. stefankip commented on Aug 7, 2020

    @stefankip
    ContributorAuthor

    Nice work mate! 💯

  6. PerplexDaniel commented on Aug 16, 2020

    @PerplexDaniel
    Member

    @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.

  7. stefankip commented on Aug 18, 2020

    @stefankip
    ContributorAuthor

    Yeah works for me :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

acceptedbug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions