Commit 0f620fa3 authored by bbaer's avatar bbaer
Browse files

changed from read-only attribute to disabled

parent 55f1aa37
Pipeline #2836 passed with stages
in 2 minutes and 39 seconds
......@@ -68,12 +68,14 @@ QfqNS.Helper = QfqNS.Helper || {};
});
/* Remove ReadOnly Again - we have to implement tinymce differently
to make it easier to change such attributes */
to make it easier to change such */
var me = editor;
var $parent = $(config.selector);
$parent.parent('div').mouseenter(function(e) {
if($parent.is('[readonly="readonly"]')) {
console.log("Mouse Enter");
console.log($parent.is('[disabled]'));
if($parent.is('[disabled]')) {
me.setMode("readonly");
} else {
me.setMode("design");
......@@ -82,7 +84,7 @@ QfqNS.Helper = QfqNS.Helper || {};
};
tinymce.init(config);
if($(this).is('[readonly]')) {
if($(this).is('[disabled]')) {
myEditor.setMode("readonly");
}
}
......
Markdown is supported
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