diff --git a/public/js/pages/Calendar/View.js b/public/js/pages/Calendar/View.js index 39c8aa16a..bd78233bc 100644 --- a/public/js/pages/Calendar/View.js +++ b/public/js/pages/Calendar/View.js @@ -1864,7 +1864,10 @@ $(document).ready(function () { $('#customer-info-type-text').val(data.mobilenumber); } } - if ($("#customer").select2('data')[0].spin) { + if ($("#customer").select2('data')[0].spin) {// ID deines Editors + var currentContent = tinymce.activeEditor.getContent(); + tinymce.activeEditor.setContent(currentContent + '
Service Pin: ' + $("#customer").select2('data')[0].spin + '
'); + $('#description').val('Service Pin: ' + $("#customer").select2('data')[0].spin + '\n'); }