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

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.




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
  • Anthony Borrow
    Wed, Mar 5, 2014, 1:24 PM
    Out of curiosity, I noticed that you had some issues with and wondered if you had considered hosting the code on When possible, I encourage folks to provide a link to the source code.
  • Anthony Borrow
    Wed, Mar 5, 2014, 1:43 PM
    I have installed and tested in Moodle 2.6 and all seems to function as expected. Peace - Anthony
  • Picture of Andreas Glombitza
    Wed, Mar 5, 2014, 6:59 PM
    Hi Anthony,

    thanks for your feedback.

    The plugin has multiple versions, apart from the 2.4+ version there's a specific download package each for Moodle 1.9, 2.0, 2.1, 2.2 and 2.3 (installation instructions also differ, as described in the documentation).
    We'll look into Github - just tight for time at the moment wink I'll also see that the next versions get a release #.
  • Anthony Borrow
    Thu, Mar 6, 2014, 1:22 PM
    Andreas - Please review and see if we can patch up those validation warnings. If you have any questions just let me know. Peace - Anthony
  • Anthony Borrow
    Thu, Mar 6, 2014, 1:41 PM
    Andreas - For documentation purposes I wanted to note that when approving the plugin, I received the following:

    No updatable strings found in the package. Maybe it is not the latest version or the plugin is misconfigured.

    StatusPluginMoodleInformationOKtinymce_clozeeditor2.0Found strings: 6 - Updated strings: 6

    StatusPluginMoodleInformationOKtinymce_clozeeditor2.1Found strings: 6 - Updated strings: 6

    StatusPluginMoodleInformationOKtinymce_clozeeditor2.2Found strings: 6 - Updated strings: 6

    StatusPluginMoodleInformationOKtinymce_clozeeditor2.3Found strings: 777 - Updated strings: 777

    2.4Found strings: 6 - Updated strings: 6
    2.5Found strings: 6 - Updated strings: 6
    2.6Found strings: 6 - Updated strings: 6

    Nothing obvious stands out to me but I am pretty sleepy so I will try to give it a look with fresh eyes tomorrow.

    Peace - Anthony
  • 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 German Valero
    Sat, Apr 5, 2014, 12:27 AM
    Hi Anthony and Andreas,

    I just noticed that the cloze editor add-on is listed twice in the Moodle plugins database:

    Here in the 'TinyMCE editor' section ( which I think is the right place
    within the 'others' plugins at

    Is this good ? or bad ? or non-important ?
  • 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
    Tue, Apr 8, 2014, 9:18 AM
    Hi Andreas,
    Today I successfully tested the CLOZE editor with the Moodle 2.7dev (alpha 20140403) package I just downloaded.

    I updated the documentation at .

    As long as the TinyMCE editor is still included in Moodle branches 2.7 and above, the CLOZE editor will be usable, just as long as TinyMCE is chosen as the default HTML editor (as described in the Docs page).

    I will re-test when Moodle 2.7 is officially released.

    I think this might be a good time to promote this useful add-on in the Moodle forums. Wouldn't you agree ?
  • 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.

1 2
Please login to post comments