1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-11 18:50:28 +00:00
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 CodeMirror 5.36.0 modularized (#3184) 2018-04-06 17:34:50 +01:00
ui/controlpanel CodeMirror 5.36.0 modularized (#3184) 2018-04-06 17:34:50 +01:00
config-language.multids CodeMirror 5.36.0 modularized (#3184) 2018-04-06 17:34:50 +01:00
edit-codemirror.js Update codemirror and markdown plugins from #2315 2016-04-22 08:41:31 +01:00
EditorTypeMappings.multids Update codemirror and markdown plugins from #2315 2016-04-22 08:41:31 +01:00
engine.js Fix CodeMirror on fake dom (#3547) 2018-11-19 20:56:59 +00:00
keyboard.tid CodeMirror 5.36.0 modularized (#3184) 2018-04-06 17:34:50 +01:00
license.tid CodeMirror 5.36.0 modularized (#3184) 2018-04-06 17:34:50 +01:00
plugin.info CodeMirror 5.36.0 modularized (#3184) 2018-04-06 17:34:50 +01:00
readme.tid codemirror update v5.37.0 (#3220) 2018-04-24 22:06:59 +01:00
styles.tid CodeMirror plugin: tweak for font-size (#3294) 2018-05-19 08:50:18 +01:00
usage.tid CodeMirror 5.36.0 modularized (#3184) 2018-04-06 17:34:50 +01:00

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