Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
<!--[if IE]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
  #preview {
    border: #ddd;
    background: #e8e8e8;
    padding: 10px;
  }
</style>
</head>
<body>
  
  <!-- Will automaticall load the editor here -->
  <div id="epiceditor"></div>
  
  <!-- We use this to show a custom previewer -->
  <div id="preview"></div>
  
  <script src="https://raw.github.com/OscarGodson/EpicEditor/develop/epiceditor/js/epiceditor.min.js"></script>
  <script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
</body>
</html>
 
// use GitHub for this example (don't do this in production!)
var editor = new EpicEditor({ basePath: 'https://raw.github.com/OscarGodson/EpicEditor/develop/epiceditor' });
// Cache the previewer selector
$preview = $('#preview');
//load 'er up
editor.load(function () {
  //Show what we have in localStorage on initial load
   $preview.html(editor.exportFile(null, 'html'));
});
//Setup live preview
$(editor.getElement('editor')).on('keyup', function () {
  $preview.html(editor.exportFile(null, 'html'));
});
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers