Fixed issue #1917. Only images in new note are lost on submit.
This commit is contained in:
parent
cef84ef74f
commit
20e0784c34
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue