소스 검색

Add linebreak after image; Add display:block to image

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

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

1321
 
1321
 
1322
 			zss_editor.insertImage = function(url, alt) {
1322
 			zss_editor.insertImage = function(url, alt) {
1323
 				zss_editor.restorerange();
1323
 				zss_editor.restorerange();
1324
-				var html = '<img src="'+url+'" alt="'+alt+'" />';
1324
+				var html = '<img src="'+url+'" alt="'+alt+'" /><br>';
1325
 				zss_editor.insertHTML(html);
1325
 				zss_editor.insertHTML(html);
1326
 				zss_editor.enabledEditingItems();
1326
 				zss_editor.enabledEditingItems();
1327
 			}
1327
 			}
1619
 				max-width: 98%;
1619
 				max-width: 98%;
1620
 				margin-left:auto;
1620
 				margin-left:auto;
1621
 				margin-right:auto;
1621
 				margin-right:auto;
1622
+				display: block;
1622
 			}
1623
 			}
1623
 
1624
 
1624
 			audio {
1625
 			audio {