From: Michael P. <mp...@pl...> - 2008-03-04 18:32:29
|
Mark Pearson wrote: > Has anyone else seen Krang strip SPAN attributes? The wysiwyg editor is > retaining the attributes yet after I publish the article the attribute > is missing. Does this happen on publish only, or when you save the story and then come back to it? > We have a scrubber set up to strip some tags and attributes > from being read into the wysiwyg editor, however, the style attribute of > the SPAN tag is not one of them. You're right. That portion of the module does look like it's configured to allow span elements and styles on those span elements. So I don't think that's the problem. > Here is the code that is in the story: > > <h1><span style="font-size: 20pt; font-weight: bold; color: rgb(255, 0, > 0); text-align: center;">This web page uses inline styles.</span></h1> > > > > Here is what appears on the page in the ‘view source’: > > <!--wysiwyg--> > > <h1><strong>This web page uses inline styles.</strong></h1> > > <!--wysiwyg--> If it's only happening at publish time then it's got to be part of the element library. Take a look at the source for the element you're testing this with and see if there's anything that's doing any filtering, etc. -- Michael Peters Plus Three, LP |