Procházet zdrojové kódy

Add linebreak after image; Add display:block to image

ihork před 8 roky
rodič
revize
b73f92008d
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2
    1
      src/editor.html

+ 2
- 1
src/editor.html Zobrazit soubor

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 {