This drives me nuts! Every now and again this code will automatically add it self to the links to download files in the html of a page or post during editing:
<br />
onclick="if(!confirm('Open this file with Google Docs?'))return true;window.location='http://docs.google.com/gview?url='+this.href;return false;"
I think it is this that then leads to a spawn of "pdf icons" next to the link.
Why does happen and how do I stop it?
I have to apologise that I did not spot the reply to my related question about the proliferating pdf icons that I asked in Sept 2010:
In that case the code being automatically added was:
<img src="http://docs.google.com/favicon.ico" alt="" /><img src="http://docs.google.com/favicon.ico" alt="" /><img src="http://docs.google.com/favicon.ico" alt="" />
The reply then (apologies again for not spotting it until now) was:
If it keeps happening, could you describe the exact steps you used to enter this image into your post, and how they are duplicated?
- How did you insert the image? From the media uploader Image URL?
- Did you reload the edit post page after you save it? Or did you reload the published page?
The answer, as with this "open in Google docs" code is that I did not add anything myself: the codes for the icons and the code for opening in Google Docs added themselves.
In reply to my question about the nuisance icons, naokomc asked whether the icons cloned themselves when I reloaded the published page or when I reloaded a page during editing. It was when I reloaded an already-published page. Very bizarre!
I am assuming that my current question and my previous question are related as they are both about code to do with Google Docs stuff inserting itself automatically into published posts or pages.
I have just cleared out all the code that automatically appeared as part of every pdf download link on this page, which is the same page that I gave as an example of the "automatic icons" problem in Sept 2010:
http://ukes4fun.org.uk/songsheets/
That it is the same page is probably just a coincidence as the icon problem occurred elsewhere on my site - and I have seen it on other sites that I have visited.
Best wishes,
Lizzie
The blog I need help with is ukes4fun.org.uk.