Selaa lähdekoodia

fixed a bug with image disappearing when losing focus

Artal Druk 9 vuotta sitten
vanhempi
commit
fd2dadfa7c
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      src/editor.html

+ 1
- 1
src/editor.html Näytä tiedosto

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