diff --git a/app/assets/javascripts/app/lib/base/jquery.contenteditable.js b/app/assets/javascripts/app/lib/base/jquery.contenteditable.js index 05b6d5567..f228ef845 100644 --- a/app/assets/javascripts/app/lib/base/jquery.contenteditable.js +++ b/app/assets/javascripts/app/lib/base/jquery.contenteditable.js @@ -540,7 +540,7 @@ // for validation, do not retrun empty content by empty tags text_plain = this.$element.text().trim() - if ( !text_plain || text_plain == '' ) { + if ( (!text_plain || text_plain == '') && !this.$element.find('img').get(0) ) { return text_plain } return this.$element.html().trim()