Closed tino closed 13 years ago
This is on a Mac btw. The error also occurs in Safari
Which parser are you using? Sounds like it's not providing indentation info.
Ah, that is the problem. I was using the rst parser from https://gist.github.com/497582#file_parserst.js. It was indeed missing an indentation function. I added a very basic one, so it is working now.
Thanks for the quick reply.
Tino
It's actually kind of stupid that CodeMirror breaks in this case. I've pushed a patch that just sets indentation to 0 when the parser doesn't provide indentation.
Hi,
I am trying to use tab with the default config in Chrome 7.0.517.44. Wether I have selected text or not, the error I get is:
Uncaught TypeError: Property 'indentation' of object #<an HTMLBRElement> is not a function editor.js:958 Editor.indentLineAftereditor.js:958 Editor.indentAtCursoreditor.js:1210 Editor.reindentSelectioneditor.js:738 Editor.handleTabeditor.js:1023 Editor.keyDowneditor.js:803 (anonymous function)util.js:5 wrapHandlerutil.js:98
Using
tabMode = 'spaces
this error dissappears.