Is it possible to disable IE Lync add-in using script

Our site has recently been hit by a new plugin pushed into IE. The plugin is for Lync, which detects phone numbers and adds a link to the phone number next to it. This affects the implementation of our rich text editor by adding a link to the data that is saved. Does anyone know how to disable this plugin with some kind of meta tag or other script?

I look at the fact that you remove the html that is added when it is saved, but this is a very clumsy solution. Any ideas would be appreciated.

thanks Scott

+4
source share
2 answers

Updated answer: Hiding the icon with CSS is even easier: fooobar.com/questions/343963 / ...

Original answer:

It doesn't seem that there is a meta tag to disable the plugin.

Through a trial version and an error, I found that MS Lync does not recognize an inextricable hyphen. Therefore, I wrote a jQuery plugin to replace hyphens in phone numbers with the unbreakable character symbol # 8209. The MS Lync IE plugin starts after javascript is completed, so it will not see the phone number and will not add an icon.

More details in my blog or just look at the code:

/* Hide phone numbers from MS Lync plugin */ /* by using non-breaking hyphens */ /* usage: $('.phone').disableMSLync(); */ jQuery.fn.disableMSLync = function() { return this.each(function(){ this.innerHTML = this.innerHTML.replace(/-/g,"‑"); }) } 
+1
source

The following link has some interesting ideas for doing the same with the Skype plugin - not sure if they will work for you

How to remove Skype plugin markup using jQuery

0
source

Source: https://habr.com/ru/post/1398871/


All Articles