Search code examples
javascriptepiceditor

EpicEditor is not visible


I am trying to make EpicEditor to work and i have followed the instructions from the website:

HTML:

<div id="epiceditor"></div>

Javascript:

 var editor = new EpicEditor().load();

however when i load the page i get a blank page but with the following html:

<div id="epiceditor" style="height: 0px;"><iframe scrolling="no" frameborder="0" id="epiceditor-27565" style="width: 0px; height: 0px;"></iframe></div>

The console shows no errors and all files have been loaded correctly. So what could the problem be?


Solution

  • Maybe it works and you are not realize it.

    Try like this. It works!

    <head>
        <meta charset="utf-8">
        <script src="js/epiceditor.js"></script>
    </head>
    <body>
        <div id="epiceditor"></div>
    </body>
    <script type="text/javascript">
        var editor = new EpicEditor().load();
    </script>