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.

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 Glombitza
    Thu, Mar 6, 2014, 6:52 PM
    Hi Anthony,

    I'll look into it later today - the missing release # isn't really a problem (I'll just add it to version.php). About the lang string messages you receive for the Moodle 2.0-2.3 packages - I don't know enough about the "intelligence" of the plugin validation (and its connections to AMOS), but I suspect that it expects lang strings to be in a different format/directory than they are.

    Does the database (a) *correctly* validate TinyMCE plugins for Moodle 2.0 through 2.3 (considering that they necessarily involved patching the core file lib.php), or (b) does it (falsely) expect them to conform t the standard plugin format of Moodle 2.4+? In case (b), I could probably put in some "dummy" lang files just to "appease" the plugin database validation - but I wonder whether this would really help anybody. In case (a), I'd need to check whether the lang strings are maybe in the wrong place altogether.

  • Picture of Andreas Glombitza
    Mon, Apr 7, 2014, 7:40 PM
    Hi German,
    yes, after talking to Aparup last month, I "moved" (rather, copied) the plugin to this new location at It makes installation more straigtforward. In the "old" location's description I wrote that the plugin has moved and disabled all the downloads. It can be deleted, but so far I haven't found the right button wink
  • Picture of German Valero
    Sun, Jun 22, 2014, 1:41 AM
    I have successfully tested the cloze editor plugin with Moodle 2.7 TinyMCE editor . This is a great plugin for all Moodle branches.
  • Luis G.
    Sun, Sep 28, 2014, 11:53 AM
    Hi everybody,
    I am trying to install ClozeEditor. I have moodle 1.9 and for this I followed the instructions, they have had no effect within moodle. So ask for help because it does not know what's happening, the exact version is 1.9.16.
  • Picture of Andreas Glombitza
    Tue, Sep 30, 2014, 4:40 PM
    Dear Luis,
    could you check whether you have the file "insert_cloze.php" in the right directory of your moodle install: "/lib/editor/htmlarea/popups"?

    Did you also replace the file "/lib/editor/htmlarea/htmlarea.php" with the version from the download package (AFTER backing up the file in your installation)?

  • Luis G.
    Wed, Oct 1, 2014, 10:39 AM
    Thanks Andreas, i see my error, and cloze editor work in my moodle.
  • 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
1 2
Please login to post comments