Skip to content
Snippets Groups Projects
Commit 0f620fa3 authored by bbaer's avatar bbaer
Browse files

changed from read-only attribute to disabled

parent 55f1aa37
Branches S13788_datetimepicker_selectable_weekdays
No related tags found
1 merge request!221B9720 checkbox various setups
Pipeline #2836 passed
......@@ -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");
}
}
......
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