Browse Source

fixed a bug with image disappearing when losing focus

Artal Druk 8 years ago
parent
commit
fd2dadfa7c
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/editor.html

+ 1
- 1
src/editor.html View File

@@ -927,7 +927,7 @@
927 927
 				//set focus
928 928
 				editor.focusout(function(){
929 929
 					var element = $(this);
930
-					if (!element.text().trim().length) {
930
+					if (!element.html().trim().length) {
931 931
 						element.empty();
932 932
 					}
933 933
 				});