The ID (string) or element (object) of the target container in which you want the editor to appear.
The base path of the directory containing the /themes, /images, etc.
Setting this to false will disable localStorage.
The name to use for the localStorage object.
Marked is the only parser built into EpicEditor, but you can customize or toggle this by passing a parsing function to this option. For example: parser: MyCustomParser.parse
If true, editor will focus on load.
If no file exists with this name a new one will be made, otherwise the existing will be opened.
The content to show if no content exists for a file.
How often to auto save the file in milliseconds. Set to false to turn it off.
The base styles such as the utility bar with the buttons.
The theme for the editor which is the area you type into.
The theme for the previewer.
The key to hold while holding the other shortcut keys to trigger a key combo.
18 (alt key)
The shortcut to open fullscreen.
70 (f key)
The shortcut to open the previewer.
80 (p key)
The shortcut to open the editor.
79 (o key)
You can hook into specific events in EpicEditor with on() such as when a file is created, removed, or updated. Below is a complete list of currently supported events and their description.
Fires whenever a new file is created.
Fires whenever a file is read.
Fires whenever a file is updated.
Fires whenever a file is deleted.
Fires when the editor loads via load().
Fires whenever the editor is unloaded via unload()
Fires whenever the previewer is opened (excluding fullscreen) via preview() or the preview button.
Fires whenever the editor is opened (excluding fullscreen) via edit() or the edit button.
Fires whenever the file is saved whether by EpicEditor automatically or when save() is called.
Fires whenever a file is opened or loads automatically by EpicEditor or when open() is called.
Step To setup
Following step are follow to develope simple example.
Step 1: Download
Download the latest release (0.1.1) or clone the repo:
This is Parvez Alam from India. I am software developer with 4 years’ experience in web development. I have submitted articles on PHP, Mysql, Magento,CSS, HTML, jQuery, web designing and social API. You can subscribe to my blog via RSS/Twitter/Google plus and Facebook.