Moodle plugins directory: Cloze Editor

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.

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

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.

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 https://docs.moodle.org/29/en/Cloze_editor_module

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.

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?

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 ... ?

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.

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.
Thanks.
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.