Null style for a given element and all child elements within?

Caporegime
Joined
18 Oct 2002
Posts
29,493
Location
Back in East London
One of the sites I've created uses TinyMCE for the content. The user is copying content from word doc's into the field, then saving and due to the various style attrib's for the rest of the site, it is interfering with the style of the tinymce content.

So.. I would like to be able to do something like:

Code:
div#article, div#article * { style: none !important; }
to "null" all the style.

Possible?
 
Ta,

I'd needed not bother in the end; I've been able to place the #article div at a sufficiently high enough level that it no longer has any styled elements to inherit from :)

However, Firefox's default settings prevents Javascript from accessing the clipboard, so I've got another PITA to deal with now.
 
It's a client side setting, there is no way for Javascript to enable it - ergo, there is no way for the webapp to do it. I haven't tried SSL to see if it allows it though.
 
Back
Top Bottom