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

TinyMCE menu in RichText fields in tiled editor on modal renders erratic above/below the editor area #425

Open
fredvd opened this issue Sep 14, 2018 · 0 comments

Comments

@fredvd
Copy link
Member

fredvd commented Sep 14, 2018

TinyMCE widgets on a tiled edit modal have their menu bar dropdown menu's displaced. At first I though it was somehow related to the location of the tile on the mosaic editor. Lower on the page seems to give more displacement, but not always. Further experimenting shows it's dependent on the scroll position of the mosaic editor page before you open the modal.

The menu's of 'inline' RichText tiles like Field - Text and Structure - RichText work fine, it's only happening in the modal edit forms.

It's a bit difficult to reproduce in core plone/mosaic because we have no out of the box tiles that have RichText in their schema. For testing I've added collective.tiles.advancedstatic to my plone.app.mosaic buildout. Testing this with test-5.1.coredev.cfg, but it's also happening with Mosaic 2.1.1 and Plone 5.1.3-pending.

If you place an advanced static tile in the middle of a filled mosaic editor page with some richt text structures above and below the advanced static tile you can open the edit modal in different pagescroll positions.

Visual demontration. So with this mosaic layout:

moasic_page_overview_1

The tinymce richttext in the modal works ok:

pagescroll_top_edit_modal_2

But when I open the same tile edit modal with the page scrolled down:
open_edit_modal_with_page_scrolled_down_3

The menu drop downs are displaced.

edit_modal_page_scroll_bottom_4

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

No branches or pull requests

1 participant