Commit 5451626c authored by Carsten  Rose's avatar Carsten Rose
Browse files

Merge remote-tracking branch 'origin/tinymce' into crose_work

parents f95594a8 20a24f19
......@@ -51,7 +51,7 @@ QfqNS.Helper = QfqNS.Helper || {};
}
}
config.selector = "#" + tinyMCEId;
config.selector = "#" + QfqNS.escapeJqueryIdSelector(tinyMCEId);
config.setup = function (editor) {
editor.on('Change', function (e) {
QfqNS.Log.debug('Editor was changed');
......
/**
* @author Rafael Ostertag <rafael.ostertag@math.uzh.ch>
*/
/* global $ */
/**
* Qfq Namespace
*
* @namespace QfqNS
*/
var QfqNS = QfqNS || {};
(function (n) {
'use strict';
n.escapeJqueryIdSelector = function (idSelector) {
return idSelector.replace(/(:)/, "\\$1");
};
})(QfqNS);
\ No newline at end of file
......@@ -69,11 +69,11 @@
<div class="form-group">
<div class="col-md-2">
<label for="text2" class="control-label">Rich Text Editor</label>
<label for="text:2" class="control-label">Rich Text Editor</label>
</div>
<div class="col-md-6">
<textarea id="text2" class="qfq-tinymce" name="rte"
<textarea id="text:2" class="qfq-tinymce" name="rte"
data-config="{ &quot;plugins&quot;: &quot;advlist autolink link image lists charmap print preview&quot;}">Input
</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