Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tile edit overlay shows up twice with Plone 4.3-latest and p.a.widgets-1.x installed #719

Open
petschki opened this issue May 30, 2017 · 6 comments
Labels

Comments

@petschki
Copy link
Member

With latest Plone 4.3 and p.a.widgets 1.x branch installed the edit tile overlays show up twice. This is due to classname "pat-plone-modal" on a.edit-tile-link which registers the plone modal additionally to the $.fn.prepOverlay() in compose.js ... looks like this:

bildschirmfoto 2017-05-30 um 08 52 43

I don't want to disable prepOverlay because its used systemwide in Plone 4.3 .. my recommendation is to remove the pat-plone-modal classname as the Tiny editor for example isn't initialized correctly anyway. Without the pat-plone-modal class it looks OK:

bildschirmfoto 2017-05-30 um 08 59 44

If you're with me, I'll make a small pull request on this.

@petschki
Copy link
Member Author

Well ... after some more investigations on the compose.js code I've changed my mind ;) I think it would be better to check for installed require.js before initalizing prepOverlay() and let the pat-plone-modal do it's job instead of prepOverlay() ... I've already fixed the JS code but right now I'm fighting with get_tinymce_options() to get the right context to adapt... maybe someone had this fight already?

@petschki
Copy link
Member Author

Well well ... time goes by ... I have to admit, that this issue sounded quite familiar. Looking at issue #543 I've realized, that I've already forked cover and implemented a working richt text modal. Now I've made a pull request which fixes Plone 4.3/p.a.widgets 1.x issues ... see #720

petschki added a commit that referenced this issue May 30, 2017
@hvelarde hvelarde added the bug label May 30, 2017
@hvelarde
Copy link
Member

hvelarde commented May 30, 2017

rereading the issue I want to ask you if this happens with latest version of Plone only; if that the case then this needs to be fixed differently as should be related with plone/Products.CMFPlone#1710; let us know.

@petschki
Copy link
Member Author

I'm not sure what your mentioned issue has to do with this one ... but I can confirm, that this bug also occurs on Plone 4.3.11 with p.a.widgets 1.x ... same effect: double overlay.

@hvelarde
Copy link
Member

ok, then is not related; thanks!

@Mubra
Copy link
Member

Mubra commented Nov 21, 2019

Hi @petschki , I can't explain this behavior, will you have a recipe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants