Commit caca426d authored by bbaer's avatar bbaer
Browse files

changed to blur for readonly (to not trigger form changed)

parent 81aa70a2
......@@ -72,7 +72,7 @@ QfqNS.Helper = QfqNS.Helper || {};
var me = editor;
var $parent = $(config.selector);
$parent.on("change", function(e, configuration) {
$parent.on("blur", function(e, configuration) {
if(configuration.disabled || configuration.readonly) {
me.setMode("readonly");
$(this).siblings(".mce-tinymce").addClass("qfq-tinymce-readonly");
......@@ -86,7 +86,6 @@ QfqNS.Helper = QfqNS.Helper || {};
tinymce.init(config);
if($(this).is('[disabled]')) {
myEditor.setMode("readonly");
$(this).siblings(".mce-tinymce").addClass("qfq-tinymce-readonly");
}
}
);
......
......@@ -1235,7 +1235,7 @@ var QfqNS = QfqNS || {};
// The tinymce registers a listener on the textarea
// See helper/tinyMCE.js for details
if(element.$element.hasClass('qfq-tinymce')) {
element.$element.trigger("change", [configurationItem]);
element.$element.trigger("blur", [configurationItem]);
}
if (configurationItem.value !== undefined) {
......
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