Closed giuliaghisini closed 4 years ago
@giuliaghisini could you imagine to write a Cypress test that shows this problem (and fails)? It bugs me that we don't catch regressions like this. You can basically just copy over this test:
https://github.com/plone/volto/blob/master/cypress/integration/block-text.js
And apply it for the news item (or any other content object that does not use the blocks layout/editor).
@robgietema any idea what causes this?
yess. I created a new branch #draftjs-link-in-contenttype. I'm going to write test now..
pushed failing cypress test
@giuliaghisini thank you! Would you mind adding a link here to the PR?
We've found the problem: this commit
Basically LinkEntity checks if the user is logged-in or not and creates a different component (router link or standard ).
On wysiwyg editor it breaks because the editor try to generate html with renderToStaticMarkup that's now wrapped into a redux Provider.
@robgietema any ideas on how to fix/avoid this problem?