TiddlyWiki5/plugins/tiddlywiki/codemirror
BurningTreeC b629b1412d Fix CodeMirror on fake dom (#3547)
* fix for #3547

see https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty

because of "strict mode" - the `parentNode` property may not be writable and causes an error in `fakedom.js` (appendChild)

to reproduce: install CodeMirror, install "Tools for exploring internals of TW", open a heavy Tiddler like the Control-Panel in edit-mode, toggle preview on, switch to "parse tree" or "widget tree"

* check for tw fakedom
2018-11-19 20:56:59 +00:00
..
config Update CodeMirror config tiddlers (#3524) 2018-11-07 17:58:38 +00:00
files CodeMirror: revert preventing dragging within textarea (#3414) 2018-08-28 21:02:32 +01:00
settings
ui/controlpanel
EditorTypeMappings.multids
config-language.multids
edit-codemirror.js
engine.js Fix CodeMirror on fake dom (#3547) 2018-11-19 20:56:59 +00:00
keyboard.tid
license.tid
plugin.info
readme.tid
styles.tid
usage.tid

readme.tid

title: $:/plugins/tiddlywiki/codemirror/readme

This plugin provides an enhanced text editor component based on [[CodeMirror|http://codemirror.net]].
The basic configuration is designed to be as lightweight as possible and is just around 235kb of size.
Additional features can be installed with ~CodeMirror ~AddOns from the plugin library:

* Code colouring for many languages (see [[the official documentation here|http://codemirror.net/mode/index.html]])
* Auto closing brackets and tags
* Folding brackets, comments, and tags
* Auto-completion
* Search and Replace
* Fullscreen Editing
* Optional Emacs, Sublime Text or Vim Keymaps


[[Source code|https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/codemirror]]

Based on ~CodeMirror version 5.37.0