Skip to content
Snippets Groups Projects
Commit 5451626c authored by Carsten  Rose's avatar Carsten Rose
Browse files

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

parents f95594a8 20a24f19
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ QfqNS.Helper = QfqNS.Helper || {}; ...@@ -51,7 +51,7 @@ QfqNS.Helper = QfqNS.Helper || {};
} }
} }
config.selector = "#" + tinyMCEId; config.selector = "#" + QfqNS.escapeJqueryIdSelector(tinyMCEId);
config.setup = function (editor) { config.setup = function (editor) {
editor.on('Change', function (e) { editor.on('Change', function (e) {
QfqNS.Log.debug('Editor was changed'); 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 @@ ...@@ -69,11 +69,11 @@
<div class="form-group"> <div class="form-group">
<div class="col-md-2"> <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>
<div class="col-md-6"> <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 data-config="{ &quot;plugins&quot;: &quot;advlist autolink link image lists charmap print preview&quot;}">Input
</textarea> </textarea>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment