[kupu-dev] Avoid filtering of specific attribute

Wouter Vanden Hove wouter at netcentric.be
Wed Oct 3 21:52:30 CEST 2007


Max M wrote:

> Duncan Booth skrev:
> 
>> includeTagAttributes('span', 'dynafield:view')
>> 
>> But I'm not sure that will work or if the unexpected namespace might
>> cause problems.
> 
> Turned out that I was close all the time:
> 
> editor.xhtmlvalid.setTagAttributes(['div','span']
['dynafield:uid','dynafield:view']);
> editor.xhtmlvalid.setAttrFilter(['dynafield:uid']);
> editor.xhtmlvalid.setAttrFilter(['dynafield:view']);

This is the working solution?

in kupuinit.js there is:
kupu.xhtmlvalid.includeTagAttributes(['div'], ['*']);

this would mean that
<div dynafield:view="find_issn" class="dynafield">dynamisk</div>

should be working out-of-the-box? But this doesn't seem to be the case.


I have a very similar use-case, trying to get ZPTField working with kupu to
enable tags like this:
<span  tal:replace="here/title"> title </span>

what is the best way get disable the filtering for this?
edit kupucontentfilters.js or kupuinit.js?


-- 
Wouter Vanden Hove
Netcentric.be



More information about the kupu-dev mailing list