diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/FormUtil.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/FormUtil.js index 4ad47cf6b24ac026dfb7d47ac7052e9bdc88aa85..b8828afebbdafd737150cd580558bc46fb7bfa0a 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/FormUtil.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/FormUtil.js @@ -887,6 +887,7 @@ this._getTextBox = function(id, alt, isRequired) { }) .then( editor => { if (value) { + value = this.prepareValue(value); editor.setData(value); } @@ -900,11 +901,15 @@ this._getTextBox = function(id, alt, isRequired) { CKEditorManager.addEditor($component.attr('id'), editor); }) .catch(error => { - console.error( error ); + Util.showError(error); }); } } + this.prepareValue = function(value) { + return value.replace(/"/g, "\'"); + } + this.activateRichTextProperties = function($component, componentOnChange, propertyType, value, isReadOnly) { if(profile.isForcedDisableRTF(propertyType)) { $component.change(function(event) {