test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • gaston Friend
    #147035

    The function addDropCap(); removes the space before any word with a <strong>word here</strong> tag placed inside an article,

    addDropCap = function () {
    var contents = getElementsByClass('article-content');
    if (!contents) return;
    for (j=0;j<contents.length;j++){
    node = contents[j];
    while (node.childNodes.length) {
    node = node.firstChild;
    while (($(node) && $(node).getText().trim()=='')||(node.nodeType==3 && node.nodeValue.trim()=='')) {
    node = node.nextSibling;
    }
    if ($type(node) == 'textnode') break;
    }
    if ($type(node)=='textnode') {
    var val = node.nodeValue.trim();
    var dc = document.createElement('span');
    dc.className = 'dropcap';
    dc.innerHTML = val.charAt(0);
    node.nodeValue = val.substr(1);
    node.parentNode.insertBefore(dc, node);
    }
    }
    }

    Does any one know how to fix it?

    thanks

    Anonymous Moderator
    #327235

    Hi gaston

    COuld you let me in detail your issue?

    gaston Friend
    #327308

    yes, every time I set a bold word or sentence on an article, the space before that word or sentence is eliminated.
    http://www.dupla.org/cpc/
    see the first pharagraph , the last words: teníamos 18años. should read: teníamos 18 años.
    i tried commenting addDropCap() and works fine, thats why Im shure is that function that trims the space before the bolds or strong tags
    please tell me if you need more info.
    thank you
    best
    gaston

    Anonymous Moderator
    #327479

    Hi gaston

    I have made a text like your text in our demo site but could not see this issue

    Could you submit a ticket, send us your live url, admin account so that i could have a closer look on the issue?

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by Anonymous 15 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum