Replaced native trim() with query.trim() because IE8 is not supporting it.
This commit is contained in:
parent
28b5bb6cf7
commit
6ee8429a9e
2 changed files with 4 additions and 2 deletions
|
@ -439,7 +439,8 @@ class Article extends App.Controller
|
|||
|
||||
# build html body
|
||||
# cleanup body
|
||||
@article['html'] = @article.body.trim()
|
||||
# @article['html'] = @article.body.trim()
|
||||
@article['html'] = $.trim( @article.body.trim() )
|
||||
@article['html'].replace( /\n\r/g, "\n" )
|
||||
@article['html'].replace( /\n\n\n/g, "\n\n" )
|
||||
|
||||
|
|
|
@ -70,7 +70,8 @@ class _Singleton
|
|||
else if document.selection
|
||||
text = document.selection.createRange().text
|
||||
if text
|
||||
text = text.toString().trim()
|
||||
# text = text.toString().trim()
|
||||
text = $.trim( text.toString() )
|
||||
text
|
||||
|
||||
# get current selection
|
||||
|
|
Loading…
Reference in a new issue