소스 검색

fixed a bug with image disappearing when losing focus

Artal Druk 8 년 전
부모
커밋
fd2dadfa7c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      src/editor.html

+ 1
- 1
src/editor.html 파일 보기

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