[kupu-dev] kupu filtering "class" attribute from links - solved
Rick Moore
rem63 at cornell.edu
Fri Feb 22 19:12:33 CET 2008
Got someone locally to help me out and we solved it, thanks
Rick Moore
Rick Moore wrote:
> One of our web sites (Birds of North America -
> http://bna.birds.cornell.edu) has over 11,000 articles about birds. The
> original content was downloaded from an old Fatwire database and
> inserted directly into the text field of the documents. Each of these
> articles may contain dozens of bibiliographic references that are
> supposed to shown in small popup windows when selected. Because of all
> the religion against the onClick. attribute, we do this using the class
> attribute on the <a> tag.
>
> This worked fine until recently, then blew up when we started to update
> the articles for some of the birds. Once the content is changed in kupu,
> all the class attributes are stripped from the <a> tags and the popup
> trigger no longer functions.
>
> I posted this on the plone-users web site and ttried looking at
> kupubasetools,js and kupucontentfilters.js as suggested. I am not a
> javascript programmer, so I was somewhat bewildered by what I found. It
> seems that kupubasetools.js specifically allows the "class" attribute
> for practically everything. But then the code in LinkTool seems to want
> to strip it out if it wasn't set by the one of the link buttons in the
> kupu UI.
>
> I need somewhat explicit help in figuring this out. Is there anyone who
> can tell me where the class attribute gets stripped out of links and how
> I can fix it. I have no aversion to upgrading to a later rev of kupu if
> that will help. And I'd be willing to add a special link button if
> that's what it takes, just don't know how.
>
> We are using :
> kupu 1.3.9
> Plone 2.5.4
> Zope 2.9.7
> Python 2.4.4
> Red Hat Enterprise Linux
>
> Thanks,
>
> Rick Moore
> Software Architect
> Scientific Knowledge and Education Network
> Cornell Lab of Ornithology
>
> _______________________________________________
> kupu-dev mailing list
> kupu-dev at codespeak.net
> http://codespeak.net/mailman/listinfo/kupu-dev
>
More information about the kupu-dev
mailing list