Skip to content

Modal empty in pdf annotor #55

Description

@srobotta

Describe the bug
When using the tiny elements in conjunction with the pdf annotator plugin (https://github.com/rwthmoodle/moodle-mod_pdfannotator) on the right side when adding a comment the tinyMCE opens. There is also the button for the tiny elements. Clicking on it opens the modal with the headline but empty body.

As far as I can tell the body html is actually filled at least with the tabs for the categories but that code is never visible to the user. Hence the modal body is empty.

To Reproduce
Steps to reproduce the behavior:

  1. Install the plugin pdfannotator (https://github.com/rwthmoodle/moodle-mod_pdfannotator) in your Moodle
  2. Create a new pdf annotation activity as a admin or teacher, give it a name and upload a pdf and click on "Save and display"
  3. When the activity is displayed, click the color field in the toolbar and select some text. On the right side, the editor opens up to add some text.
  4. In the editor click the icon for the tiny elements or select it from the insert menu.
  5. The modal dialogue loads but remains empty.

Expected behavior
The modal dialog should load normally with the possible elements show up to select one.

Screenshots
Image

Desktop (please complete the following information):

  • OS: Linux
  • Browser: Firefox
  • Version: Moodle 5.1.4, 5.3dev, PDF Annotator v1.5 release 9, Tiny Elements 1.0.1

Additional comments

I tried to locate the problem but was not able to do so. The bug might be in the pdf annotator plugin. There are no console errors or similar. I assume some event propagation is canceled and therefore the content in the modal is not visible. As far as I can tell in the DOM tree the appropriate content is loaded and all the tiny element class go through without errors for loading additional content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions