OscarGodson / EpicEditor

EpicEditor is an embeddable JavaScript Markdown editor with split fullscreen editing, live previewing, automatic draft saving, offline support, and more. For developers, it offers a robust API, can be easily themed, and allows you to swap out the bundled Markdown parser with anything you throw at it.
http://epiceditor.com
MIT License
4.25k stars 334 forks source link

Preview with auto grow breaks when using images #314

Open xPaw opened 10 years ago

xPaw commented 10 years ago
  1. Go to epiceditor.com
  2. Insert ![](http://placekitten.com/200/2000) into the editor
  3. Press preview
  4. Image is cut off

This only seems to happen if it takes some time to load the image.

OscarGodson commented 10 years ago

We dont really do anything with images at all. Just create and img tag with the given as a source. Dont add widths or heights or anything. Could you inspect that element and send what you see? As in, is there CSS being applied or html attributes?

xPaw commented 10 years ago

I only see height: 356px; on the iframe it self. Also worth nothing that it grows correctly if the image is loaded fast enough (e.g cached).