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 337 forks source link

Alternate Previewer option #228

Open luiscarlosjayk opened 11 years ago

luiscarlosjayk commented 11 years ago

There should be an option while instancing EpicEditor that allows creating a previewer on an element defined by user. It should make a 2nd iframe for preview appear somewhere and make the CSS clashes go away.

Different than what's achieved in this example: https://gist.github.com/OscarGodson/d58ef4994ee703ce6622

PD: Excellent job!

larsbo commented 11 years ago

:+1:

OscarGodson commented 11 years ago

I'm adding it as a feature and will try to get it into 0.3.0, but it might be more like 0.4.0. In the meantime, the other way to achieve this is to put EpicEditor into an iframe. In the iframe where you do new EpicEditor().load(), you could also add .enterFullscreen. This is basically what I'll be doing internally.

Offirmo commented 10 years ago

:+1:

terrywh commented 10 years ago

hi, is this feature be landed in the latest release?