Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2005-04-14 04:34:36

willeffects
Xinha Authority
Registered: 2005-03-19
Posts: 130

can you know if you are inside a table?

Is there any easy way to figure out if you are inside a table and if so popup an error box.

Im trying to create a button that will insert some code but cannot be inserted inside an existing table.

Offline

#2 2005-04-14 04:59:07

adamp
Xinha Pro
Registered: 2005-03-14
Posts: 77

Re: can you know if you are inside a table?

Check out the Stylist plugin. I recall seeing a function in there that checks if you're inside a <p></p> set, so it should be easy enough to re-write for tables.

Offline

Board footer

Powered by FluxBB