Skip to content

Commit

Permalink
fix: tinymc config
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-atnos committed Aug 21, 2024
1 parent 84e6382 commit 090f177
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/modules/pia/content/measures/measures.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ export class MeasuresComponent implements OnInit, OnDestroy {
this.editor = editor;
editor.on('focusout', async () => {
this.measureForm.controls['measureContent'].patchValue(
editor.getContent({ format: 'text' })
editor.getContent()
);
await this.measureContentFocusOut();
tinymce.remove(this.editor);
Expand Down
4 changes: 1 addition & 3 deletions src/app/modules/pia/content/questions/questions.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,9 +516,7 @@ export class QuestionsComponent implements OnInit, OnDestroy {
});
editor.on('focusout', () => {
// Save content
this.questionForm.controls['text'].patchValue(
editor.getContent({ format: 'text' })
);
this.questionForm.controls['text'].patchValue(editor.getContent());
this.questionContentFocusOut().then(() => {
this.editor = null;
tinymce.remove(this.editor); // Warning: take more time then a new initiation
Expand Down

0 comments on commit 090f177

Please sign in to comment.