1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Update codemirror plugin docs

@pmario and @jbolila - could you kindly check whether the docs cover
everything?
This commit is contained in:
Jermolene 2014-01-25 19:34:32 +00:00
parent bd067c6b1e
commit b5629ccc82
2 changed files with 22 additions and 0 deletions

View File

@ -7,3 +7,5 @@ Try editing the tiddler LoremIpsum to try out the editor.
To add the plugin to your own TiddlyWiki5, just drag this link to the browser window:
[[$:/plugins/tiddlywiki/codemirror]]
{{$:/plugins/tiddlywiki/codemirror/instructions}}

View File

@ -0,0 +1,20 @@
title: $:/plugins/tiddlywiki/codemirror/instructions
! Configuration
You can configure the CodeMirror plugin by creating a tiddler called [[$:/config/CodeMirror]] containing a JSON configuration object. For example:
```
{
"require": [
"$:/plugins/tiddlywiki/codemirror/addon/dialog.js",
"$:/plugins/tiddlywiki/codemirror/addon/searchcursor.js",
"$:/plugins/tiddlywiki/codemirror/keymap/vim.js",
"$:/plugins/tiddlywiki/codemirror/keymap/emacs.js"
],
"configuration": {
"keyMap": "vim",
"showCursorWhenSelecting": true
}
}
```