p4ulypops / jquery-clean

Automatically exported from code.google.com/p/jquery-clean
0 stars 0 forks source link

Allow only some inline styles? #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Customer pastes text from MSWord into content management area of our app
2. All the MS styles ruin the app look and feel
3. But we need to allow them only to change font color or specific others. 
Dissalow changing of font-family or font-size.

What is the expected output? What do you see instead?
See #3 above. We have a customer who has been given access to modify 
descriptive paragraphs within the app we built for them. We want to give them 
freedom to do some things and your script is perfect for this. But how do we 
allow only some inline styles such as "style=color:" but not change font size 
or family?

What version of the product are you using? On what operating system?
v. 1.3.0 
Windows and Mac

Please provide any additional information below.

Am I missing the setting somewhere in the script? Thanks! 

Original issue reported on code.google.com by maureen....@gmail.com on 25 Mar 2013 at 6:02

GoogleCodeExporter commented 9 years ago
I am afraid not, that would require knowledge of css to parse the rules in the 
style attribute and is beyond the scope of this script

Original comment by antixsof...@gmail.com on 25 Mar 2013 at 6:41

GoogleCodeExporter commented 9 years ago
Thanks for the quick reply.
I just wanted to make sure I wasn't missing anything.

Keep up the good work.

Original comment by maureen....@gmail.com on 25 Mar 2013 at 6:45