javascript - Insert br tag between uploaded images in summernote -


can't deal summernote editor. when uploading images summernote editor, want insert
tag after each uploaded image, example: want get

<p> text.... <img src="img1.png"> <br> <img src="img2.png"> <br> text.... </p> 

but have:

<p> <img src="img1.png"> <img src="img2.png"> <br> </p> 

here code insert images after upload editor:

for (var in url.uploaded_files) {    $(selector).summernote("insertimage", url.path + url.uploaded_files[i]);    $(selector).summernote("inserthtml", '<br>'); } 

also:

$(selector).summernote("insertnode", document.createelement("br")); 

doesn't work.

please advice how insert br or tag after uploaded images

problem fixed css. added display:block; images inside of .note-editable node.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -