I am using dotdotdot.js for my project.
Recently, I added a rich-text editor (tinymce), and the text now has some html elements like p,a,b,i, etc.
dotdotdot is not working as expected for this text.
Here is the fiddle: http://jsfiddle.net/dgkdN/
$(".text-ellipsis").dotdotdot({
watch: "true",
after: ".read-more",
callback: function (isTruncated, orgContent) {
if (isTruncated) {
$('.read-more', this).show();
}
}
});
Please find the screenshot showing the problem below:
The "Useruuu" text should show up fully. But it is cut off to half its vertical height. That is the problem that I am facing.
I want to show it normally, I mean, full height of the line. Or show only "..." if it cant take up the available vertical height
Please help!