Skip to content

Commit

Permalink
Update Read me
Browse files Browse the repository at this point in the history
  • Loading branch information
Sacripant committed Jan 18, 2014
1 parent 9157fb9 commit b07167e
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ace-for-txp
===========

Ace Editor for [Textpattern](http://www.textpatern.com) write tab
------------------------------------
==========================

If like me you find that the proposed standard textarea texpattern is too small to write, here is a writing space in full screen for the body of your articles.

Expand All @@ -11,16 +11,32 @@ It uses [Ace editor](http://ace.ajax.org/#nav=about)
Need [bot_write-tab-customize](http://forum.textpattern.com/viewtopic.php?id=32175) plugin for Textpattern

How-to Install
--------------
==============

1. Copy `*ace-for-txp-master* folder in /textpattern directory
1. Copy `*ace-for-write-tab* folder in /textpattern directory
2. copy the 3 lines below in *Extensions > Write Tab customize > Additional js code textarea* and Save

```html
<link rel="stylesheet" href="ace-for-txp-master/theme-sacripant.css" />
<script src="ace-for-txp-master/src/ace.js" type="text/javascript"></script>
<script src="ace-for-txp-master/ace-for-write-tab.js" type="text/javascript"></script>
<link rel="stylesheet" href="ace-for-write-tab/theme-sacripant.css" />
<script src="ace-for-write-tab/src/ace.js" type="text/javascript"></script>
<script src="ace-for-write-tab/ace-for-write-tab.js" type="text/javascript"></script>
```

How-to Use
===========

A new icon is now available near Body Label in Textpattern Write tab.
A click in this button open a editor in full page.

By default a basic Syntax Highlighter for textile in activate.
Ace Editor is a powerfull text Editor with many possibility via [Keyboard Shortcuts](https://github.com/ajaxorg/ace/wiki/Default-Keyboard-Shortcuts).

Additional Keyboard Shortcuts
------------------------------

- **ctrl-s, cmd-s** for save.
- **esc** for close editor.


That's It

0 comments on commit b07167e

Please sign in to comment.