Skip to content

Commit 6ba91b5

Browse files
authored
fix(editor): Set dangerouslyUseHTMLString in composable (#12280)
1 parent 388a83d commit 6ba91b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/editor-ui/src/composables/useMessage.ts

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export function useMessage() {
2626
...(config ?? (typeof configOrTitle === 'object' ? configOrTitle : {})),
2727
cancelButtonClass: 'btn--cancel',
2828
confirmButtonClass: 'btn--confirm',
29+
dangerouslyUseHTMLString: true,
2930
};
3031

3132
if (typeof configOrTitle === 'string') {
@@ -49,6 +50,7 @@ export function useMessage() {
4950
distinguishCancelAndClose: true,
5051
showClose: config?.showClose ?? false,
5152
closeOnClickModal: false,
53+
dangerouslyUseHTMLString: true,
5254
...(config ?? (typeof configOrTitle === 'object' ? configOrTitle : {})),
5355
};
5456

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

7982
if (typeof configOrTitle === 'string') {

0 commit comments

Comments
 (0)