Hi Everyone
I have been trying to create a little script and I cant for the life of me work out how to write something… (No change there!!! )
What I would like to achieve is to use the: fwFindEnclosing to find any tag
I have used:
fwFindEnclosing(“h1”);
and
fwFindEnclosing(“p”);
but how would I find any tag that might be present… is there a way of adding more tags to the:
fwFindEnclosing(" ");
so it will find the one thats there or just make it a general find any tag type.
Hi Pems,
Although you can pass in an array to the fwFindEnclosing function to
look for various tags you can also look for the direct parent by
passing a null value as well.
Something like;
var enclosing = styleslink.fwFindEnclosing();
When I have more time I’ll dig out an example.
Kind regards,
Tim.
On 29 Jul 2010, at 17:06, pems wrote:
Hi Everyone
I have been trying to create a little script and I cant for the life
of me work out how to write something… (No change there!!! )
What I would like to achieve is to use the: fwFindEnclosing to find
any tag
I have used:
fwFindEnclosing(“h1”);
and
fwFindEnclosing(“p”);
but how would I find any tag that might be present… is there a way
of adding more tags to the:
fwFindEnclosing(" ");
so it will find the one thats there or just make it a general find
any tag type.