Permalink
Browse files

Ticket #215 - Added docs

  • Loading branch information...
1 parent 416447a commit 84aac99a1e61e8306372b6f18ecce9a764abee7d @OscarGodson committed Mar 8, 2013
Showing with 44 additions and 6 deletions.
  1. +22 −3 README.md
  2. +22 −3 index.html
View
@@ -63,9 +63,13 @@ var opts = {
autoSave: 100
},
theme: {
- base:'/themes/base/epiceditor.css',
- preview:'/themes/preview/preview-dark.css',
- editor:'/themes/editor/epic-dark.css'
+ base: '/themes/base/epiceditor.css',
+ preview: '/themes/preview/preview-dark.css',
+ editor: '/themes/editor/epic-dark.css'
+ },
+ button: {
+ preview: true,
+ fullscreen: true
},
focusOnLoad: false,
shortcut: {
@@ -160,6 +164,21 @@ var editor = new EpicEditor(opts);
<td><code>themes/preview/github.css</code></td>
</tr>
<tr>
+ <td><code>button</code></td>
+ <td>If set to <code>false</code> will remove all buttons.</td>
+ <td>All buttons set to <code>true</code>.</td>
+ </tr>
+ <tr>
+ <td><code>button.preview</code></td>
+ <td>If set to <code>false</code> will remove the preview button.</td>
+ <td><code>true</code></td>
+ </tr>
+ <tr>
+ <td><code>button.fullscreen</code></td>
+ <td>If set to <code>false</code> will remove the fullscreen button.</td>
+ <td><code>true</code></td>
+ </tr>
+ <tr>
<td><code>shortcut.modifier</code></td>
<td>The key to hold while holding the other shortcut keys to trigger a key combo.</td>
<td><code>18</code> (<code>alt</code> key)</td>
View
@@ -68,9 +68,13 @@
autoSave: 100
},
theme: {
- base:&#39;/themes/base/epiceditor.css&#39;,
- preview:&#39;/themes/preview/preview-dark.css&#39;,
- editor:&#39;/themes/editor/epic-dark.css&#39;
+ base: &#39;/themes/base/epiceditor.css&#39;,
+ preview: &#39;/themes/preview/preview-dark.css&#39;,
+ editor: &#39;/themes/editor/epic-dark.css&#39;
+ },
+ button: {
+ preview: true,
+ fullscreen: true
},
focusOnLoad: false,
shortcut: {
@@ -163,6 +167,21 @@
<td><code>themes/preview/github.css</code></td>
</tr>
<tr>
+ <td><code>button</code></td>
+ <td>If set to <code>false</code> will remove all buttons.</td>
+ <td>All buttons set to <code>true</code>.</td>
+ </tr>
+ <tr>
+ <td><code>button.preview</code></td>
+ <td>If set to <code>false</code> will remove the preview button.</td>
+ <td><code>true</code></td>
+ </tr>
+ <tr>
+ <td><code>button.fullscreen</code></td>
+ <td>If set to <code>false</code> will remove the fullscreen button.</td>
+ <td><code>true</code></td>
+ </tr>
+ <tr>
<td><code>shortcut.modifier</code></td>
<td>The key to hold while holding the other shortcut keys to trigger a key combo.</td>
<td><code>18</code> (<code>alt</code> key)</td>

0 comments on commit 84aac99

Please sign in to comment.