Skip to content

Commit b73f920

Browse files
committed
Add linebreak after image; Add display:block to image
1 parent 9396c0f commit b73f920

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/editor.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1321,7 +1321,7 @@
13211321

13221322
zss_editor.insertImage = function(url, alt) {
13231323
zss_editor.restorerange();
1324-
var html = '<img src="'+url+'" alt="'+alt+'" />';
1324+
var html = '<img src="'+url+'" alt="'+alt+'" /><br>';
13251325
zss_editor.insertHTML(html);
13261326
zss_editor.enabledEditingItems();
13271327
}
@@ -1619,6 +1619,7 @@
16191619
max-width: 98%;
16201620
margin-left:auto;
16211621
margin-right:auto;
1622+
display: block;
16221623
}
16231624

16241625
audio {

0 commit comments

Comments
 (0)