Cloze question editor

TinyMCE ::: tiny_cloze
Maintained by Stephan Robotta
Make it easy for users to create cloze question types via the TinyMCE editor.
Latest release:
1323 sites
570 downloads
22 fans
Current versions available: 1

Created collaboratively at MoodleMootDACH 23 Zurich.

A plugin for the Moodle Tiny editor to allow easier creation of Cloze questions see https://docs.moodle.org/en/Embedded_Answers_(Cloze)_question_type. Inspired by the Atto Cloze editor https://docs.moodle.org/en/Cloze_editor_for_Atto.

In fall 2024 the cloze question editor plugin received the award for "Best Open-Source TinyMCE Plugin for Moodle"

TinyMCE Award for "Best Open Source Plugin"

See the blogpost at Tiny for more details.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4
Screenshot #5

Contributors

Stephan Robotta (Lead maintainer)
Melanie Treitinger
Alexander Mikasch
Please login to view contributors details and/or to contact them

Comments RSS

བསམ་བཀོད་ཚུ་ སྟོན
  • Joseph Rézeau
    སྤེན་, 30 ༨ 2024, 10:11 PM
    Excellent! Thanks Stephan!
  • Przemek Kaszubski
    ཉི་, 31 ༨ 2024, 5:30 PM
    You're reading my mind, Stephan དགའ་འཛུམ་ These next two improvements in version 1.8 (https://moodle.org/plugins/pluginversion.php?id=33030) were on my list, too, but I thought I'd rather wait a while before requesting དགའ་འཛུམ་ . Brilliant stuff - thanks a lot again !
  • Luca Bellani
    ཟླ་, 1 ༩ 2024, 1:47 AM
    Hi, I installed the plugin and I have TinyMCE 6.6.2 editor, but, the cloze editor icon is not showing. (Moodle 4.3.5)
  • Stephan Robotta
    ལྷག་, 3 ༩ 2024, 1:27 AM
    Hi Luca, are you sure that you have tried on a question text field when defining a cloze question? In any other textfield the button will not appear. In case you did, could you please check the developer console and report any error that you see?
    Thank you, Stephan
  • Lorenzo Greco
    ཉི་, 19 ༡༠ 2024, 1:16 AM
    I've installed this plugin on Moodle 4.1.14+ (Build: 20241011) , and i had alredy nstalled the plugin TinyMCE (legacy) ::: tinymce_clozeeditor that have a toolbar botton, I hade to uninstall tiny_cloze because generate en error in SITE Administration - USERS -Add user (Exception - Class 'question_bank' not found)
  • Stephan Robotta
    ཉི་, 19 ༡༠ 2024, 2:47 PM
    Hi Lorenzo,

    while I never had the idea why the tests didn't detect that error, I was able to reproduce it. In my opinion there is something wrong with the class loader in 4.1 that it doesn't load the question_bank class in the user admin page.
    I have disabled that test for 4.1 that will also not allow to use the newly supported multianserrgx plugin (see release notes) with 4.1. There are no practical consequences for you because multianserrgx is not yet in the official Moodle plugin directory and can only be installed via the code from github.
    All changes are commited in the main branch.
    Best regards, Stephan
  • Matthew Marinovich
    སངས་, 24 ༡༠ 2024, 9:48 PM
    Hi Stephan, thanks for the confirmation of the issue above. Is the correction going to be added to the/a tagged release sometime soon?
  • Dr. Nellie Deutsch
    ཉི་, 26 ༡༠ 2024, 7:50 PM
    I installed the plugin on Moodle 4.5, but I don't see it under insert on TinyMCE even after purging all.
  • Stephan Robotta
    མིར་, 28 ༡༠ 2024, 8:52 PM
    Hi Nellie,
    Please make sure that you are edting a cloze question and are on the question text. Only at that place the button should show up. Also make sure that you are using the "new" TinyMCE and not the TinyMCE legacy editor.
    Best regards, Stephan
  • Stephan Robotta
    མིར་, 28 ༡༠ 2024, 8:53 PM
    Hi Matthew,
    I haven't yet planed a new release. I hope I will do one soon with the fix for 4.1.
    Best regards, Stephan
  • Stephan Robotta
    སྤེན་, 1 ༡༡ 2024, 5:49 PM
    Hi Matthew,
    There is the release 1.10 out now that fixes the loading issue in Moodle 4.1.
    Best regards, Stephan
  • Matthew Marinovich
    སངས་, 28 ༡༡ 2024, 2:34 PM
    Awesome - thank you Stephan!
  • Marius Larose
    ལྷག་, 10 12 2024, 4:18 AM
    Hello Stephan,
    We've encountered an error message when users try to answer a long text question from Moodle's Questionnaire module. The stack trace informs that this is due to an unresolved call to tiny_cloze's configuration:

    line 101 of /lib/editor/tiny/plugins/cloze/classes/plugininfo.php: Error thrown
    line 80 of /lib/editor/tiny/classes/plugin.php: call to tiny_cloze\plugininfo::get_plugin_configuration_for_context()
    line 72 of /lib/editor/tiny/classes/manager.php: call to editor_tiny\plugin::get_plugin_info()
    line 58 of /lib/editor/tiny/classes/editor.php: call to editor_tiny\manager->get_plugin_configuration()
    line 149 of /lib/editor/tiny/classes/editor.php: call to editor_tiny\editor::set_default_configuration()
    line 94 of /mod/questionnaire/classes/question/essay.php: call to editor_tiny\editor->use_editor()
    line 876 of /mod/questionnaire/classes/question/question.php: call to mod_questionnaire\question\essay->question_survey_display()
    line 229 of /mod/questionnaire/classes/output/renderer.php: call to mod_questionnaire\question\question->question_output()
    line 1336 of /mod/questionnaire/questionnaire.class.php: call to mod_questionnaire\output\renderer->question_output()
    line 1248 of /mod/questionnaire/questionnaire.class.php: call to questionnaire->survey_render()
    line 280 of /mod/questionnaire/questionnaire.class.php: call to questionnaire->print_survey()
    line 82 of /mod/questionnaire/complete.php: call to questionnaire->view()

    Changing to another text editor or turning off tiny_cloze fixes it. Any idea why Moodle's Questionnaire is calling for tiny_cloze when answering long text questions? Is this something you can fix?

    Best regards, Marius
  • Iñigo Zendegi Urzelai
    ལྷག་, 10 12 2024, 3:01 PM
    Hi, Marius

    That error has been already fixed in the Github repository (still not published here): https://github.com/srobotta/moodle-tiny_cloze/issues/25#issuecomment-2506545438
  • Stephan Robotta
    ལྷག་, 10 12 2024, 4:59 PM
    Hi, I just release v1.11 that contains the fix that Iñigo and Marius reported. Thank you, guys.
1 2
Please login to post comments