Explorar el Código

fixed a bug with image disappearing when losing focus

Artal Druk hace 8 años
padre
commit
fd2dadfa7c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/editor.html

+ 1
- 1
src/editor.html Ver fichero

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
 				});