Columnizer-jQuery-Plugin icon indicating copy to clipboard operation
Columnizer-jQuery-Plugin copied to clipboard

Should have some hard-coded dontsplit's (suggestion)

Open chrisgraham opened this issue 12 years ago • 1 comments

Solved via a simple new line of code

$(this).find('table, thead, tbody, tr, th, td, li').addClass('dontend');

just before

return this.each(function() {

chrisgraham avatar Jan 20 '12 02:01 chrisgraham

In fact...

$(this).find('table, thead, tbody, tfoot, colgroup, caption, label, legend, script, style, textarea, button, object, embed, tr, th, td, li, h1, h2, h3, h4, h5, h6, form').addClass('dontsplit');

Of course people can hard code dontsplit, but I am making columnizer work in a context where markup is not made by a developer. So it has to work seamlessly. Also imagine it working for system-generated content seamlessly.

chrisgraham avatar Jan 20 '12 12:01 chrisgraham