Sublimetext plugin for Code mirror leads me to error.

70 views
Skip to first unread message

peuhpeuh singe

unread,
May 3, 2018, 5:22:10 AM5/3/18
to TiddlyWiki
Hi,

I upgraded my tiddlywiki to 5.1.16 and everythinks (looks to) work well until I installed the codemirror add-on for sublimetext keymap that when installed and selected leads to the "Internal JavaScript Error":

Moreover, when I try to edit a tiddler I get a similar message reporting:
"
TypeError: n is undefined
"
(the error does not happen when the plugin is installed but not used instead of the default keymap)

and nothing appears in the text emplacement (but the toolbar is present)

Any idea on how to fix it ?

Thks in advance,
P.

BurningTreeC

unread,
May 3, 2018, 6:02:04 AM5/3/18
to TiddlyWiki
Hi, you need to install the Search and Replace and the Close Brackets Addon

BurningTreeC

unread,
May 3, 2018, 6:04:25 AM5/3/18
to TiddlyWiki
We should probably document that better somewhere..

The Close Brackets and the Search and Replace AddOns need just the codemirror editor plugin to work, the keymaps have more dependencies

peuhpeuh singe

unread,
May 3, 2018, 6:30:11 AM5/3/18
to tiddl...@googlegroups.com
Thanks for considering my question. However,
- I installed the Search and Replace and the Close Backets Addon: I tested and they works.
- Then I set the SublimeText keymap plugin as "Enable". Anything seems good
- Then I select "sublimetext" instead of "Default" as  ~CodeMirror keymap in controlPanel-> setting -> codemirror

and then I still get the message:
"
TypeError: n is undefined
"
and nothing in the editor.

Any advice ?

BurningTreeC

unread,
May 3, 2018, 7:08:32 AM5/3/18
to TiddlyWiki
That's strange, I did the same with an empty tiddlywiki v5.1.16 and it works without problems

What's your tiddlywiki version?

peuhpeuh singe

unread,
May 3, 2018, 7:32:47 AM5/3/18
to TiddlyWiki
Ok, it works now. I removed a few hacks I did to get an improved usage of codemirror (in 5.1.15) that looks to cause the errors. Thanks for this !

P.
Reply all
Reply to author
Forward
0 new messages