markdown-editor icon indicating copy to clipboard operation
markdown-editor copied to clipboard

Auto close brackets addon not working

Open GNHua opened this issue 8 years ago • 0 comments

I tried to add auto closing brackets addon from this codemirror example.

I added the addon javascript, and set autoCloseBrackets to be true for CodeMirror. js cm

In the codemirror example, when a [ key is pressed, it generates [], and put cursor in the bracket.

The issue is that when I press [ key, it generates [][. The same goes for keys like {, (.

GNHua avatar Jun 07 '17 19:06 GNHua