Skip to content
nicoburns edited this page Dec 29, 2012 · 5 revisions

GhostEdit is a WYSIWYG editor designed to make creating and editing blog posts as easy as possible. This guide is to help developers to install GhostEdit. See [Using GhostEdit] (https://github.com/nicoburns/ghostedit/wiki/Using-GhostEdit) if you want help on using the editor once it is installed.

Uploading the files

There are 2 files and 1 folder that you need to know about to install GhostEdit:

  • The main JavaScript file ghostedit-[version].min.js
  • The CSS file ghostedit-[version].css
  • The images folder, which contains the images used by GhostEdit

The images folder can be found in the root of the GhostEdit source, and both of the files can be found in the dist folder.

All of these files need to be uploaded anywhere to your webserver. It doesn't matter where, so choose somewhere convenient. You may want to rename the images folder to ghostedit-images or similar to avoid confusion with your other image files. The location of the images folder is passed to GhostEdit as an option when you initialise it.

Including the files

The CSS and JavaScript files are included like normal:

<link rel="stylesheet" media="screen" href="http://website.com/path/to/ghostedit-[version].css" />

Should be placed in the <head> of your document to link to the CSS, and

<script type="text/javascript" src="http://website.com/path/to/ghostedit-[version].min.js"></script>

should be placed somewhere in your document (at the end of the body is recommended).

Clone this wiki locally