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) 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

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 Andreas Schenkel
    Sat, Jan 17, 2015, 2:32 AM
    Will it work in Atto in the future?
  • Picture of Gorn ---
    Wed, Feb 25, 2015, 9:03 PM
    Hello Cloze-Developers!
    We're using your plugin with Moodle 2.7.5 and in general we don't have any problems, it works as intended.
    Only after the latest security updates one of our users has complained, that she's unable now to add formatting to the questions (like bold or color or the like), because TinyMCE seems to then add a lot of

    -tags now that destroy the Cloze questions. We're not sure if it's either Moodle or TinyMCE that is the culprit here or if maybe your plugin needs another update. If you have any idea what might be different compared to how your plugin worked together with TinyMCE before, we'd appreciate any information we can get in order to solve our user's problem.

    Thank you anyway for your work, it's a great plugin.

  • Picture of Clemente Luna
    Thu, Apr 16, 2015, 11:38 PM
    hola Que tal alguien me puede ayudar ha usado este complemento en la versión 2.8 y como funciona, gracias., saludos
  • Health & Safety Training Ninja
    Fri, Aug 28, 2015, 9:17 PM
    This plugin doesn't appear to work on Moodle 2.3.11 - the lib.php file is not contained within moodle version 2.3.11 here: lib/editor/tinymce/lib.php. The instructions say this file will be overwritten with a modified version. But, there's nothing to overwrite. So, I assume as moodle 2.3.11 does not contain this file natively, nothing is being over written and the lib.php file is not in use; and is the reason it the editor does not display the icon to use the closeditor.
  • 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.
1 2
Please login to post comments