remove extra spaces @ chapter's raw preview

This commit is contained in:
alexadam 2016-09-16 12:02:04 +03:00
parent 06027ea882
commit e82b74288f

View file

@ -182,7 +182,7 @@ function showEditor() {
function previewListItem(atIndex) { function previewListItem(atIndex) {
return function() { return function() {
alert(allPagesRef[atIndex].content.trim().substring(0, 500).replace(/<[^>]+>/gi, '') + ' ...'); alert(allPagesRef[atIndex].content.trim().replace(/<[^>]+>/gi, '').replace(/\s+/g, ' ').substring(0, 1000) + ' ...');
}; };
} }