CodeMirror internally buffers changes and only updates its DOM structure after it has finished performing some operation. If you need to perform a lot of operations on a CodeMirror instance, you can call this method with a function argument. It will call the function, buffering up al
(fn: ()=> T)
| 306 | It will call the function, buffering up all changes, and only doing the expensive update after the function returns. |
| 307 | This can be a lot faster. The return value from this method will be the return value of your function. */ |
| 308 | operation<T>(fn: ()=> T): T; |
| 309 | |
| 310 | /** Adjust the indentation of the given line. |
| 311 | The second argument (which defaults to "smart") may be one of: |
no outgoing calls
no test coverage detected