diff --git a/ui/src/components/editor/editor-utils.js b/ui/src/components/editor/editor-utils.js index 137d0a33bc8..2da194e2e8b 100644 --- a/ui/src/components/editor/editor-utils.js +++ b/ui/src/components/editor/editor-utils.js @@ -31,15 +31,16 @@ function getBtn (eVm, btn, clickHandler, active = false) { : false), child = [] - if (btn.tip && eVm.$q.platform.is.desktop) { + if (eVm.$q.platform.is.desktop && (btn.tip || btn.htmlTip)) { const Key = btn.key ? h('div', [ h('small', `(CTRL + ${ String.fromCharCode(btn.key) })`) ]) : null + child.push( h(QTooltip, { delay: 1000 }, () => [ - h('div', { innerHTML: btn.tip }), + h('div', btn.htmlTip ? { innerHTML: btn.htmlTip } : btn.tip), Key ]) )