mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
N°7678 - Bulk modify of objects with HTML field broken
- file have been restored from its previous version due to a wrong merge conflict resolution
This commit is contained in:
@@ -1,12 +1,6 @@
|
||||
import { Plugin } from '@ckeditor/ckeditor5-core';
|
||||
import {ClassicEditor} from "@ckeditor/ckeditor5-editor-classic";
|
||||
|
||||
interface BlockFieldInterface{
|
||||
(element:HTMLElement, isBlocked: boolean):any;
|
||||
}
|
||||
|
||||
declare var BlockFieldElement: BlockFieldInterface;
|
||||
|
||||
export default class Disabler extends Plugin {
|
||||
|
||||
static get pluginName() {
|
||||
@@ -42,7 +36,11 @@ export default class Disabler extends Plugin {
|
||||
// @ts-ignore
|
||||
const oElement = $(oEditor.ui.element);
|
||||
if(typeof oElement.block === 'function') {
|
||||
BlockFieldElement(oElement, oInputElement.disabled);
|
||||
if (oInputElement.disabled) {
|
||||
oElement.block({message: '', blockMsgClass: '', enableValidation : true, baseZ: 9999, overlayCSS: { backgroundColor: '#ccd6e066'}});
|
||||
} else {
|
||||
oElement.unblock();
|
||||
}
|
||||
}
|
||||
|
||||
// handle ckeditor read only mode
|
||||
|
||||
@@ -314,14 +314,6 @@ function BlockField(field_id, bBlocked) {
|
||||
}
|
||||
}
|
||||
|
||||
function BlockFieldElement(element, bBlocked) {
|
||||
if (bBlocked) {
|
||||
element.block({message: '', enableValidation : true, baseZ: 9999, overlayCSS: { backgroundColor: '#ccd6e066'}});
|
||||
} else {
|
||||
element.unblock();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates (enables/disables) a "duration" field
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user