Skip to content

Commit

Permalink
fix(editor): Set dangerouslyUseHTMLString in composable (#12280)
Browse files Browse the repository at this point in the history
  • Loading branch information
r00gm authored Dec 18, 2024
1 parent 388a83d commit 6ba91b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/editor-ui/src/composables/useMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export function useMessage() {
...(config ?? (typeof configOrTitle === 'object' ? configOrTitle : {})),
cancelButtonClass: 'btn--cancel',
confirmButtonClass: 'btn--confirm',
dangerouslyUseHTMLString: true,
};

if (typeof configOrTitle === 'string') {
Expand All @@ -49,6 +50,7 @@ export function useMessage() {
distinguishCancelAndClose: true,
showClose: config?.showClose ?? false,
closeOnClickModal: false,
dangerouslyUseHTMLString: true,
...(config ?? (typeof configOrTitle === 'object' ? configOrTitle : {})),
};

Expand All @@ -74,6 +76,7 @@ export function useMessage() {
...(config ?? (typeof configOrTitle === 'object' ? configOrTitle : {})),
cancelButtonClass: 'btn--cancel',
confirmButtonClass: 'btn--confirm',
dangerouslyUseHTMLString: true,
};

if (typeof configOrTitle === 'string') {
Expand Down

0 comments on commit 6ba91b5

Please sign in to comment.