Ckeditor5: how to remove all tooltip?

Created on 19 Apr 2018  路  4Comments  路  Source: ckeditor/ckeditor5

I don't need the tooltip, I have try to remove toolbar tooltip by

 Array.from(editor.ui.view.toolbar.items).forEach((button) => {
              button.tooltip = false;
              if (button.buttonView) {
                button.buttonView.tooltip = false;
              }
              // button.tooltipView = null;
            });

it works, but not enough. I can not find a way to remove the imagetoolbar tooltip.

btw, the tooltip has bug in ios, I have to click button twice to fire it, so I have to remove it all from the editor.

ui duplicate question

Most helpful comment

DUP of https://github.com/ckeditor/ckeditor5/issues/920.

Use CSS to remove tooltips

.ck.ck-button .ck.ck-tooltip {
    display: none;
}

All 4 comments

cc @oleq

DUP of https://github.com/ckeditor/ckeditor5/issues/920.

Use CSS to remove tooltips

.ck.ck-button .ck.ck-tooltip {
    display: none;
}

Hiding them with CSS is not a workaround for the iOS issue though, right? How can one remove the tooltips from image toolbar buttons too?

The snippet I pasted removes all tooltips from all buttons in the editor UI. Including the image toolbar. It's a nasty workaround. I proposed a similar one in https://github.com/ckeditor/ckeditor5-ui/pull/381 but from the JS side and we figured we should find a better solution to preserve tooltips and fix the actual bug.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pjasiun picture pjasiun  路  3Comments

MansoorJafari picture MansoorJafari  路  3Comments

benjismith picture benjismith  路  3Comments

wwalc picture wwalc  路  3Comments

hamenon picture hamenon  路  3Comments