This is a migrated thread and some comments may be shown as answers.

Users with Pinterest Browser Plugin get extra code added to HTML.

1 Answer 45 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Mark Kucera
Top achievements
Rank 1
Mark Kucera asked on 31 Aug 2015, 09:02 PM

I'm finding that if our users have the Pinterest browser plugin installed they end up with (sometimes a lot) of additional code added to their HTML content they are working on.  The extra content looks like this:

<p><span style="line-height: 1.5;"><a href="//www.pinterest.com/pin/create/extension/" style="height: 20px; width: 40px; position: absolute; opacity: 0.85; z-index: 8675309; display: none; cursor: pointer; border: medium none; background-color: transparent; background-image: url(&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAUCAYAAAD/Rn+7AAADU0lEQVR42s2WXUhTYRjHz0VEVPRFUGmtVEaFUZFhHxBhsotCU5JwBWEf1EWEEVHQx4UfFWYkFa2biPJiXbUta33OXFtuUXMzJ4bK3Nqay7m5NeZq6h/tPQ+xU20zugjOxR/+7/O8539+5znnwMtNTExwJtMb3L/fiLv3botCSmUjeCaejTOb39AiFothfHxcFIrHY8RksZjBsckJcOIRMfFsHD/SsbExUYpnI8DR0dGUGjSb0byhEJp5Uqg5CTSzc2CQleJbMEj9/ywBcGRkJEk9DQqouEVQT1sK444yWI9UonmTjGqauVLEIlHa9x8lAMbj8SSpp0rwKGMVvg8P46vbg0C7na8z8JsMcgHe7jlEa+edRhiLy8n/TUMfu6EvLElk+U0WtGwrTrdfAGQf5J8iiK4LVzDU28t8JtMSocf8E+l68myaNFXm/6rXslLK7ay5TOunuRvZWpJuvwAYjUaTpOIWoquuAZ219RTaxKYp9BbjycoN5FvL9qH9TBX5rvoGdJythvXYSTxdtRnWylO/ZdqrLsGwszzhWQ593z2KlAwCYCQSSZJ6ehZ0W7bD9VBLgN0NCqr3qR7R2rBrL3pu3Sb/7nDlz2uy6cG0OXk0GTbZXzNp8trsPAQdTj6frlWzN2DcXZGKQQAMh8NJ6rpyHe+PnkCr/CAFdZyvpfpjuvkifLF9wIt1Wwlo0OHie1RvWrKa93RjzfzliTzPKz3ltB0/Tevmwp14wGUgHAzSOoUEwFAolFaaBSuhnslPRkJexUJtZ6v5HtUeLswl33n1BgEY5fvhs9sJ3FAiT+QYyyvoAQJuD0KBAFRTJNAuz5/s3gJgMBhMJwrVFRThM5tY5zUF/A4X1f2fvQTRLCuBreoim0YmAbqNJryvPEXeeq46kaNdkQ/1HCncbJKPs9ZSv2VHGfWsZ2hfkhKAfr8/pdxWKx4wwD69PmVfNSOL+lr2w+gYqHpWDtXt1xQ8AMlWU0e1lqLd/APRHoP8AJqWrQG9gYxcPMsvSJUvAA4MDKTUJ7MZLaVy8v+qT21tcDx/OemePr0RTkNrur4A6PP5xCgBsL+/X4wiQDpuuVxOeL1eMYmYeDY6sOp0z+B0OuHxeEQhxkJMFosJiSO/UinOI/8Pc+l7KKArAT8AAAAASUVORK5CYII=&quot;); top: 1909px; left: 432px;"></a></span><br></p><p></p>

 

 and this can be repeated, 2, 3, 15+ times depending on how many times it's edited.  There isn't any way that we can prevent users from installing this plugin, and there isn't any way that we can prevent users from using the editor if they have this plugin, so we have to figure out a way to work around it.  Ideally i guess we'd need some kind of filter to auto remove this, but i guess we'd need something server side as well.  I'm going to take a stab at it, but i was wondering if this has come up before.  i'm surprised that i didn't see any mention of this anywhere else in the forum.

Thanks!

-Mark

 

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 03 Sep 2015, 04:42 AM
Hello Mark,

Indeed, no body can prevent users to install such a plugin along with RadEditor. Although, programmatically there is no approach to capture whether such a content is added by the user or a plugin, and thus, it would quite a harmful measure to strip it out without the knowledge of the user.

As of now, nobody have reported such issue and I am not aware of a read-to-use solution.

However, your assumptions is correct, you can implement a custom filter (http://docs.telerik.com/devtools/aspnet-ajax/controls/editor/managing-content/content-filters#implementing-a-custom-filter) that to strip out the additional content added by Pinterest plugin.   

Regards,
Ianko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Editor
Asked by
Mark Kucera
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or