p4ulypops / jquery-clean

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

New features #39

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I made two enhancements to my version of jquery-clean, maybe you would like to 
have them?

Option to remove empty lines or not (<div><br></div>) in order to be compatible 
with contenteditable fields.

replaceStyles can set class as well, ex:
replaceStyles: [
        [/font-weight:\s*bold/i, "strong"],
        [/font-style:\s*italic/i, "i"],
        [/text-align:\s*right/i, "div.align-right"],
        [/text-align:\s*left/i, "div.align-left"],
        [/text-align:\s*justify/i, "div.align-justify"],
        [/vertical-align:\s*super/i, "sup"],
        [/vertical-align:\s*sub/i, "sub"]
    ]

Thanks for your plugin.

Original issue reported on code.google.com by andy.dam...@gmail.com on 9 Dec 2013 at 11:55

GoogleCodeExporter commented 9 years ago
Hi Andy,

Please attach it to this issue, I'll have a look when I can.

Many thanks, Ant

Original comment by antixsof...@gmail.com on 10 Dec 2013 at 8:57

GoogleCodeExporter commented 9 years ago
Changes:
Replace style with class: 104-115
AllowNewlines: 200 and 32

Thanks

Original comment by andy.dam...@gmail.com on 15 Dec 2013 at 1:18

Attachments:

GoogleCodeExporter commented 9 years ago
AllowNewlines: 200 and 329 sorry :)

Original comment by andy.dam...@gmail.com on 15 Dec 2013 at 1:19

GoogleCodeExporter commented 9 years ago
Your plugin is very good, you should put it on github to have more visibility 
and rating...

Original comment by andy.dam...@gmail.com on 15 Dec 2013 at 1:20