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:
parent
bd067c6b1e
commit
b5629ccc82
@ -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}}
|
||||
|
20
plugins/tiddlywiki/codemirror/instructions.tid
Normal file
20
plugins/tiddlywiki/codemirror/instructions.tid
Normal 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
|
||||
}
|
||||
}
|
||||
```
|
Loading…
Reference in New Issue
Block a user