简体   繁体   中英

How to make GWT/GXT RichTextEditor Tooltip unselectable?

I have a RichTextEditor class (extended from com.extjs.gxt.ui.client.widget.LayoutContainer) in which I use a (own) tooltip class for text tooltips for links like this: https://jsfiddle.net/hkyLgam6/ .

In my project the tooltips are only shown when you hover over the link but that's maybe not important.

To be able to properly delete the links and other things, I want to make the tooltips unselectable. Because every time you select the link (in example by double clicking on it) the tooltip text gets selected too and the link removing fails in example.

Trying to prevent that with CSS (like in the jsfiddle example above):

-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: -moz-none;
-khtml-user-select: none;
-o-user-select: none;
user-select: none;

didn't work so I would be very grateful for any idea to accomplish that.

我认为您只是忘记了Internet Explorer的CSS(至少是较旧的CSS):

-ms-user-select: none;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM