diff --git a/dmp-frontend/src/app/ui/user-guide-editor/user-guide-editor.component.html b/dmp-frontend/src/app/ui/user-guide-editor/user-guide-editor.component.html index 10e98c8db..9e1d78d76 100644 --- a/dmp-frontend/src/app/ui/user-guide-editor/user-guide-editor.component.html +++ b/dmp-frontend/src/app/ui/user-guide-editor/user-guide-editor.component.html @@ -11,13 +11,18 @@ menubar: true, plugins: [ 'advlist autolink lists link image charmap print preview anchor', - 'searchreplace visualblocks code fullscreen fullpage', - 'insertdatetime media table paste code help wordcount importcss' + 'searchreplace visualblocks fullscreen fullpage', + 'insertdatetime media table paste code help wordcount importcss ', + 'codesample toc visualchars' ], + extended_valid_elements: '*[*]', + forced_root_block: '', + valid_children: '+body[script],ol[li|div|p|a|ol|table],h2[span],h3[span]', + save_enablewhendirty: false, toolbar: 'undo redo | formatselect | bold italic backcolor | \ alignleft aligncenter alignright alignjustify | \ - bullist numlist outdent indent | code | preview | removeformat | help' + bullist numlist outdent indent | code codesample | searchreplace | preview | removeformat | help' }" formControlName="html"> diff --git a/dmp-frontend/src/app/ui/user-guide-editor/user-guide-editor.component.ts b/dmp-frontend/src/app/ui/user-guide-editor/user-guide-editor.component.ts index 8222989ee..29936386e 100644 --- a/dmp-frontend/src/app/ui/user-guide-editor/user-guide-editor.component.ts +++ b/dmp-frontend/src/app/ui/user-guide-editor/user-guide-editor.component.ts @@ -67,7 +67,7 @@ export class UserGuideEditorComponent extends BaseComponent implements OnInit { reader.addEventListener('load', () => { let result = this.parseText(reader.result as string); result = result.replace(/class="href" path="/g, 'href="#'); - this.formGroup.get('html').patchValue(result); + this.formGroup.get('html').patchValue(result); }, false); reader.readAsText(data); }