Skip to content

Instantly share code, notes, and snippets.

@OscarGodson
Created May 10, 2013 00:56
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OscarGodson/d58ef4994ee703ce6622 to your computer and use it in GitHub Desktop.
Save OscarGodson/d58ef4994ee703ce6622 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>Example</title>
<style>
#epiceditor, #previewer {width:50%; float:left}
</style>
<link href="epiceditor/themes/preview/github.css" rel="stylesheet">
</head>
<body>
<div id="epiceditor"></div>
<div id="epiceditor-preview"></div>
<script src="epiceditor/js/epiceditor.min.js"></script>
<script>
var editor = new EpicEditor({
buttons: false,
}).load();
editor.on('update', function () {
document.querySelector('#epiceditor-preview').innerHTML = this.exportFile(null, 'html');
}).emit('update');
</script>
</body>
</html>
@paulocheque
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment