Open schi opened 9 years ago
hrm that's no good. can you post a jsfiddle with an example showing the bug?
Hi Adam Thank you for your quick response. I build a jsfiddle to show the bug: https://jsfiddle.net/WebTekk/yh7xq5rf/10/
Hope you can fix them. Greetings, Heinz
Hi Adam The bug is in block at line 349ff
if(onlyNode.nodeType == 3){
// text node
var whitespace = /\s/;
var str = onlyNode.nodeValue;
if(whitespace.test(str)){
// yep, only a whitespace textnode
$clone.remove();
$cloneMe.removeClass(prefixTheClassName("split"));
}
}
if(whitespace.test(str)){
This condition find ALL whitespaces in a text and remove the whole text.
I change this to
if(whitespace.test(str) && str.length == 1){
Can you please check if this make sense? Greetings, Heinz
Latest from master cut off some text and destroy. In a two column layout you have a content like
and second column start with link <a href="... the left column content get lost. Right column content is moved to left column.