Your Moodle version

TinyMCE: Cloze Editor

Maintained by Picture of Andreas Glombitza Andreas Glombitza, Picture of German Valero German Valero
An interface that integrates with Moodles existing HTML editor (HTMLArea in 1.9 and TinyMCE in 2.x and 3.x) to support teachers in creating CLOZE (Embedded answers) questions in the GIFT syntax. It will also read and edit existing CLOZE items.
Moodle 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 3.0, 3.1

The integration (PHP/javascript) is essentially a new button in the HTML editor which brings up an interface that helps create CLOZE questions in the correct syntax. It will also read and edit existing CLOZE items (which you have selected with your cursor).

Here's a demonstrator (which can also be used to create your own CLOZE quizzes):

For installation instructions and more, see the "More documentation on this plugin" link below.


Screenshot #0


Picture of Andreas Glombitza
Andreas Glombitza (Lead maintainer)
Picture of German Valero
German Valero: Documentation, translation and testing
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of German Valero
    Sun, Aug 30, 2015, 12:31 AM
    Hi Steve,
    As for Moodle 2.3.11, according to Support for the 2.3 branch has been discontinued. We highly recommend you upgrade!

    If you do upgrade your Moodle server, please notice that the CLOZE plugin only works with the TinyMCE editor and the newer Moodle branches have the Atto editor as default. Please see the documentation at

    If you can not upgrade, maybe you can use the free online CLOZE editor available at .

    As the 2.3 Moodle branch is very old, I do not currently have one such server available for testing, and it might take me a while to install one and look into your issue.
  • Picture of Ellen Spertus
    Sat, Sep 26, 2015, 12:07 AM
    Thanks for making this available. I am using Moodle 2.9.2 and TinyMCE 3.5.1. There is a lot in my lib/editor/tinymce/lib.php file, including changes I made to add other plugins. Could you give me any guidance on how to integrate your lib.php into my existing lib.php? Thanks.
  • Picture of Đinh Lư Giang
    Fri, Oct 9, 2015, 11:30 AM
    Does it work for Moodle 2.9, this excellent plugin?
  • Picture of German Valero
    Fri, Oct 9, 2015, 11:20 PM
    Hi Đinh Lư Giang,

    I can confirm that THIS PLUGIN WORKS WITH MOODLE 2.9.2, and 2.8 too. The supported Moodle branches have been updated smile

    This plugin even works with Moodle 3.0dev (Build: 20151008) ! as long as you choose TinyMCE as the upmost text editor (over Atto).
  • Picture of German Valero
    Fri, Nov 20, 2015, 1:38 AM
    I had forgotten to mention that this plugin works with Moodle 3.0 stable branch as long as TinyMCE is selected as the Text editor instead of Atto smile
  • Picture of Gorn ---
    Mon, Dec 7, 2015, 5:28 PM
    Hi there,

    since Atto is going to be Moodle's standard editor from now on, will the next installments of the cloze editor work with Atto too? With TinyMCE no longer being the main editor, there's no guarantee new Moodle versions will continue to have it included, so cloze might have to make the switch to Atto anyway?
  • Picture of German Valero
    Mon, Dec 7, 2015, 10:27 PM
    As of april 2014, Moodle 2.7 and newer branches have Atto as the default editor, but TinyMCE can still be raised as the user editor in the user preferences as explained in I do not know for how long will TinyMCE still be included in the standard Moodle package.

    I had long realized that it would be very good to have this cloze editor re-written for Atto. But, unfortunately, Andreas Glombitza (the plugin developer) changed his job some time ago and he has not been able to continue development of this plugin. I can only help with the documentation, translation and testing.

    Maybe we should raise this in a forum and begin seeking a new maintainer for this very useful plugin, as many Moodle sites seem to use it as seen on the statistics tab above.
  • Picture of Toni Kettunen
    Tue, Feb 9, 2016, 3:01 PM
    Would it be possible to add the new 3.0 shuffle questions to the editor?
  • moodler
    Wed, Feb 10, 2016, 9:46 PM
    Hi there,
    I installed this plugin on a Moodle 2.9, i can see the "?" button in tinyMCE editor, when using it the wysiwyg tool seems to work well (it generates a gift code as expected).
    But when I save the page, the result doesn't display any form, it simply display the gift code (like : {1:SHORTANSWER:%100%MyAnswer#}).
    I didn't see any specific setting to change in plugin documentation, "tinymce_clozeeditor" is correctly installed and activated, is anyone experiencing the same problem ?

    PS : During installation, I was surprised to see there's only a tinyMCE subplugin to install, I expected to have to deploy also a filter plugin (to transform the gift code to form while displaying the content saved within tinyMCE) but obviously this job is also supposed to be made by the "tinymce_clozeeditor" plugin ... ?
  • Picture of Andreas Glombitza
    Wed, Feb 10, 2016, 10:27 PM
    Dear Gabriel,

    the GIFT-codes generated by the CLOZE-editor are interpreted by Moodle's quiz-module parser (on PHP-level), not by a filter. The codes are parsed when the quiz is started, not beforehand, and the process is completely independent from the CLOZE-editor (to be exact: there is a second parsing mechanism "inside" the editor, which allows you to edit highlighted codes after encoding; this mechanism is "reverse engineered" from the quiz-module's parser, and independent from it).

    For clarification:
    When you are using the editor and "encoded" one or more items, it is expected behaviour that you see the codes generated by the editor (instead of the forms generated from them later by the quiz module).

    The proper forms (dropdown etc.) should be displayed when you start the quiz, however. After you save your questions and start the quiz, does it still display the codes instead of those forms?

    In that case, you should go back to the editing window and check the GIFT-Syntax in sourcecode. Sometimes, "invisible" HTML/CSS-formatting instructions (span tags etc.) generated by tinyMCE interfere with the GIFT-syntax, so that the quiz-module parser cannot resolve them properly.

  • moodler
    Wed, Feb 10, 2016, 11:31 PM
    Dear Andreas,
    Thank you for your quick answer and all those interesting information, your plugin works well and is very usefull, congratulation for the job you made.
  • Russell Cunning
    Tue, Mar 15, 2016, 8:04 AM
    Hi Andreas,
    I have just used your online Cloze editor, and decided to install the plugin. The plugin installed successfully. When I click on it a new window pops up just like your online editor - but all that is in the window is a 403 error.
    I'm hosted on a LiteSpeed server, which has caused issues with some of my WordPress plugins in the past - but I have no idea where to start looking for what could be wrong. Do you have any ideas? I love the tool, and in the worst case scenario, I can still use your online editor.
  • Picture of Andreas Glombitza
    Tue, Mar 15, 2016, 9:53 PM
    Dear Russell,

    it's hard to diagnose from a distance, and I have no experience with a LiteSpeed server, but it sounds as if the files are not in the correct directory. You may want to double-check the file locations with the paths listed in the Readme-file.

  • Picture of German Valero
    Mon, May 2, 2016, 6:43 AM
    This plugin works with Moodle 3.1 DEV branch (Build: 20160429) as long as TinyMCE is selected as the Text editor instead of Atto.

    It will work with Moodle 3.1 as soon as it is released, as long as TinyMCE can still be raised as the user editor in the user preferences as explained in smile
  • Picture of German Valero
    Tue, Aug 16, 2016, 2:54 AM
    Now there is also a cloze editor for Atto available for download (Moodle 2.7 to 3.1) at smile
1 2 3
Please login to post comments