Skip to content

Commit 61360d8

Browse files
fix(QEditor): consistent use of htmlTip in editor buttons #16933 (#17899)
* fix(ui): consistent use of htmlTip in editor buttons #16933 * Update editor-utils.js --------- Co-authored-by: Razvan Stoenescu <[email protected]>
1 parent 6b9841d commit 61360d8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ui/src/components/editor/editor-utils.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,16 @@ function getBtn (eVm, btn, clickHandler, active = false) {
3131
: false),
3232
child = []
3333

34-
if (btn.tip && eVm.$q.platform.is.desktop) {
34+
if (eVm.$q.platform.is.desktop && (btn.tip || btn.htmlTip)) {
3535
const Key = btn.key
3636
? h('div', [
3737
h('small', `(CTRL + ${ String.fromCharCode(btn.key) })`)
3838
])
3939
: null
40+
4041
child.push(
4142
h(QTooltip, { delay: 1000 }, () => [
42-
h('div', { innerHTML: btn.tip }),
43+
h('div', btn.htmlTip ? { innerHTML: btn.htmlTip } : btn.tip),
4344
Key
4445
])
4546
)

0 commit comments

Comments
 (0)