TinyMCE: Cloze Editor

Maintained by Picture of Andreas GlombitzaAndreas Glombitza, Germán and TemudginGermán 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.
1873 sites
36 fans
Current versions available: 7

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.

This plugin only works with the TinyMCE editor.

Daniel Thies made a very nice CLOZE editor plugin for Atto.


Screenshot #0


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

Comments RSS


  • Anthony Borrow
    Wed, Mar 5, 2014, 1:18 PM
    Andreas - Thanks for submitting this as a tinymce type. I just wanted to verify that it is only intended for Moodle 2.2. Any reason to suspect it will not work with later versions?

    I noticed the following validation warning: Release name ($plugin->release) not found in version.php

    Peace - Anthony
  • Anthony Borrow
    Wed, Mar 5, 2014, 1:24 PM
    Out of curiosity, I noticed that you had some issues with code.google.com and wondered if you had considered hosting the code on Github.com. 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 https://moodle.org/plugins/pluginversions.php?id=1022&validation=1 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 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 https://moodle.org/plugins/view.php?plugin=tinymce_clozeeditor. 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
  • 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?
Please login to post comments