-
Notifications
You must be signed in to change notification settings - Fork 13
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
v4.0-r2 does not work in Moodle 4.1 #31
Comments
I would like to see Moodle 4.1 support |
Hi @Rhywden , I am sorry that you encounter this issue. Could you please let us know which JSON code you are using and if you see this error in all browsers or just a particular browser? Thanks, |
Hi, We have the same issue When parsing the page elements, the table of values doesn't seem to be well initialized with our new entries, it only considers the first entry "no style" (date_index 0) Have you found a solution to this problem? Thanks a lot for your help Sophie |
Having the same problem as the OP in Moodle 4.1.13 using atto_styles v4.1-r3 (r4 would not change anything in js code). Here it is copied in text form (2 parts, both of which are repeated multiple times):
It happens even if you open the styles dropdown and then just close it without clicking on even "nostyle". So by clicking outside the dropdown so that it just closes. |
Can we change the issue title to [v4.0-r2] [v4.1-r4] [Moodle 4.1.13] JS errors when closing the styles dropdown by clicking outside the input |
Further debugging... The error messages don't seem to directly come from the atto_styles javascript. Maybe indirectly, maybe it's missing some function override or variables that aren't set? EDIT: Seems to happen on a focus event... |
Oh my god, the cause seems to be outside the scope of atto_styles... https://tracker.moodle.org/browse/MDL-69292 EDIT: I've read the issue and the comments, it seems to be a long standing problem with multiple attempts at solving it, of which every attempt so far led to breaking atto editor functionality. Also happens using atto_title, by the way. Maybe every time you close a dropdown in atto. |
I configured a number of CSS styles and passed valid JSON into the configuration textbox, strictly according to the instructions. This JSON worked under Moodle 3.x
With version 4.0-r2 I'm getting this the moment I try to set a style to a paragraph of text:
The text was updated successfully, but these errors were encountered: