-
-
Save OscarGodson/d58ef4994ee703ce6622 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OscarGodson/EpicEditor#391