Closed ethel-dev closed 9 years ago
If you load up EpicEditor without the assets your console should give you errors about the missing files and that way you can see where its looking for the files. For example:
To get EpicEditor running there's 5 files:
You can set the paths of the CSS files with the theme
option. By default it looks in the path you see in the image above, but you can set it to whatever you want like:
var opts = {
theme: {
base: '/path/to/my/themes/base/epiceditor.css',
preview: '/path/to/my/themes/preview/preview-dark.css',
editor: '/path/to/my/themes/editor/epic-dark.css'
}
}
var editor = new EpicEditor(opts);
So what would my <head>
look like? What scripts and stylesheets would it have?
Your head would have nothing. Above the </body>
tag you'd have the epiceditor.min.js
file and thats it.
It loads the CSS files which you see it trying to load and fail if you load the JS file and the CSS files aren't in the right place.
It doesn't do anything, it still does the same thing.
"it doesn't do anything" isn't much info. Can you give me a screenshot of your JS console?
I fixed it.
I needed my container to be empty, but instead I was putting the <script>
in the container.
:+1:
I am only getting some text and 4 unlabeled buttons with EpicEditor quickstart? What are the "scripts and assets." Basically I'm asking what stylesheets and such I should add.