Browse Source

Add linebreak after image; Add display:block to image

ihork 8 years ago
parent
commit
b73f92008d
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/editor.html

+ 2
- 1
src/editor.html View File

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 {