[kupu-dev] Avoid filtering of specific attribute
Duncan Booth
duncan.booth at suttoncourtenay.org.uk
Fri Sep 28 19:58:52 CEST 2007
Max M <maxm at mxm.dk> wrote:
> I am adding some "dynamic" functionality to a field. The field uses Kupu
> as an editor.
>
> I have a tage that looks like this:
>
><span dynafield:view="find_issn" class="dynafield">dynamisk</span>
>
> I need it to not be filtered by Kupu.
>
> I have tried various combos of::
>
> setAttrFilter(attributes,filter)
> setTagAttributes(tags,attributes)
> includeTagAttributes(tags, attributes)
> excludeTagAttributes(tags, attributes)
>
> But it is not that clear to me how they work.
>
> How do I best go about avoiding my "dynafield:view" attribute being
> filtered?
First guess:
includeTagAttributes('span', 'dynafield:view')
But I'm not sure that will work or if the unexpected namespace might cause
problems.
Remember that with recent versions of kupu toggling source view on and off
applies the filtering so you can see if your custom attributes are
surviving kupu's filtering.
More information about the kupu-dev
mailing list