I also had the expander problem. To overcome it, I selected the
elements before and after the read more link, and gave them a
display:inline css attribute.
The code is as follows.

(CSS)
                .nobreak{display:inline}

(Script)

//apply nobreak class to element immediately before read-more link
                jQuery('.read-more').prev().addClass('nobreak');

//apply nobreak class to first child of details span
                jQuery('.details > *:first').addClass('nobreak');

you can probably apply display:inline directly by substituting
addClass('nobreak') with css('display','inline').

sornman wrote:
> I just started playing with these two plugins, but have encountered
> odd issues in both, and was wondering if anyone could help me. I
> searched around a bit and was unable to find anything.
>
> The issue in truncate is that it is breaking the first word after the
> first so many characters in the opening paragraph, then inserting the
> <p> after them, rather than leaving it before them.
>
> The issue in expander is that is shows up properly at first, but then
> when you expand it, it closes the <p> at the expansion point, causing
> a break in the paragraph.
>
> I created a test page for both at:
>
> http://www.8xmedia.com/demo/jquery.html

Reply via email to