Bing translator widget without original text popup

我的未来我决定 提交于 2019-12-04 07:30:20

Got the same problem here, and after some explorations, you can do this in javascript :

Microsoft.Translator.Widget.domTranslator.showHighlight = false;
Microsoft.Translator.Widget.domTranslator.showTooltips = false;

But this must be done after translation, in my case I use Web Widget Customization API, so i can hide tooltips in the onComplete callback of Translate function.

Beware, it's not documented, so I don't know how long this will work. But it's the only way I found.

Use this line of code after loading your javascript.

window['_mstConfig'].floaterStylePath = '';

This will remove the styling of the popup.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!