Commit fdb1502d authored by Rafael Ostertag's avatar Rafael Ostertag
Browse files

Added support for jqxEditor widgets

parent cf679bab
/**
* @author Rafael Ostertag <rafael.ostertag@math.uzh.ch>
*/
/* global $ */
/**
* Qfq Namespace
*
* @namespace QfqNS
*/
var QfqNS = QfqNS || {};
/**
* Qfq Helper Namespace
*
* @namespace QfqNS.Helper
*/
QfqNS.Helper = QfqNS.Helper || {};
(function (n) {
'use strict';
/**
* @function
* @name QfqNS.Helper.jqxEditor
*/
var jqxEditor = function () {
var index;
var $containers = $("textarea.jqw-editor");
$containers.each(function (index, object) {
(function ($container) {
$container.jqxEditor();
})($(object));
});
};
n.jqxEditor = jqxEditor;
})(QfqNS.Helper);
\ No newline at end of file
......@@ -86,6 +86,7 @@ var QfqNS = QfqNS || {};
n.Helper.jqxDateTimeInput();
// Initialize jqxComboBox elements.
n.Helper.jqxComboBox();
n.Helper.jqxEditor();
};
n.QfqForm.prototype.on = n.EventEmitter.onMixin;
......
......@@ -344,7 +344,7 @@
</div>
<div class="col-md-6">
<textarea id="notes-editor" class="jqw-editor"
data-control-name="notesField">
data-control-name="notesField" name="notesField">
</textarea>
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment