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

Cannot enter text in the tiny editor's modal box of the moodle site. #2557

Open
Charlie99009 opened this issue Dec 2, 2024 · 2 comments
Open

Comments

@Charlie99009
Copy link

Description

When I put a into the modal box of the tiny editor on the moodle website, I clicked the middle of the input box, and it showed the cursor but I couldn't enter any text. But when I clicked the edge of the input box or the keyboard button or the menu button, it actually allowed me to enter. After it allowed me to enter, I let it lose focus again, and then clicked the middle of the input box again to let it get focus, and it actually worked.
1733120743320

Steps to Reproduce

  1. Load the MathLive library from a CDN with a <script> tag on Moodle site.
    <script defer src="//unpkg.com/mathlive"></script>
  2. Add a tag in the template file of a plugin in the tiny editor on Moodle site
    {{< core/modal }} {{$body}} <math-field class="w-100"></math-field> {{/body}} {{/ core/modal }}
  3. Clear cache and open it .

Actual Behavior

When I put a into the modal box of the tiny editor on the moodle website, I clicked the middle of the input box, and it showed the cursor but I couldn't enter any text

Expected Behavior

How can I solve the problem of being able to enter text by clicking the middle of the input box when it is first loaded?

Environment

MathLive version 0.102.0.

Operating System _macOS.

Browser _Safari, Chrome, Edge, Firefox

@arnog
Copy link
Owner

arnog commented Dec 2, 2024

I don't have access to Moodle site. Is this a problem that can be reproduced with Moodle site? If not, could someone familiar with Moodle site and with access to it investigate this issue and isolate if this is a problem with MathLive or somewhere else?

@Charlie99009
Copy link
Author

I don't have access to Moodle site. Is this a problem that can be reproduced with Moodle site? If not, could someone familiar with Moodle site and with access to it investigate this issue and isolate if this is a problem with MathLive or somewhere else?

Yes , of course , I think the problem happend in mathlive and the modal box of Moodle, but it has not display any errors on the console .when I put mathlive on page of Moodle(not in modal box) ,its work.

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

2 participants