Reputation: 2584
I am trying to cut off the text at the first full stop using dotdotdot plugin. However I can't make it work. I tried word-wrap: break-word;
but it didn't work. How to cut off the text at the first full stop?
I've set these options:
$("#wrapper").dotdotdot({
wrap: 'word',
watch: true,
ellipsis: '...',
fallbackToLetter: false,
lastCharacter : {
remove: [ ',', ';'],
noEllipsis: ['.']
},
});
Upvotes: 0
Views: 188