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

I cannot figure out how to get epiceditor to work #354

Closed tyleisher closed 9 years ago

tyleisher commented 9 years ago

Here is the code of my HTML page. The epiceditor.js is in the same directory.

I've also tried loading in a css file but it doesn't do anything but change the background color.

Any ideas what I am doing wrong?

<html>
<head>
    <title>Epic Editor Test</title>
  <script src="epiceditor.js"></script>
  <script>var editor = new EpicEditor().load();</script>
</head>
<body>
  <div id="epiceditor"></div>  
</body>
</html>
OscarGodson commented 9 years ago

In general, for most scripts unless explicitly stated otherwise (like analytics and tracking code), you should put your script at the bottom of your HTML document right above </body>. You closed this so I assume you fixed it, but let me know if not.