We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
H5P button is not available for atto editor when using textarea customfield
How to replicate:
The issue is the text editor (TinyMCE / Atto) is loaded by the system context, which teacher role doesn't have capability for loading H5P button.
Textarea using $this->get_handler()->get_configuration_context();, which returns system context. https://github.com/moodle/moodle/blob/ec7711b9a60402891db61357f914be161bc3dfbe/customfield/field/textarea/classes/field_controller.php#L115
$this->get_handler()->get_configuration_context();
moodle-mod_cms/classes/customfield/cmsfield_handler.php
Line 41 in e284319
The context should be from instance context, not system context.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
H5P button is not available for atto editor when using textarea customfield
How to replicate:
The issue is the text editor (TinyMCE / Atto) is loaded by the system context, which teacher role doesn't have capability for loading H5P button.
Textarea using
$this->get_handler()->get_configuration_context();
, which returns system context.https://github.com/moodle/moodle/blob/ec7711b9a60402891db61357f914be161bc3dfbe/customfield/field/textarea/classes/field_controller.php#L115
moodle-mod_cms/classes/customfield/cmsfield_handler.php
Line 41 in e284319
The context should be from instance context, not system context.
The text was updated successfully, but these errors were encountered: