Open GNHua opened 7 years ago
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.
autoCloseBrackets
true
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 {, (.
[][
{
(
I tried to add auto closing brackets addon from this codemirror example.
I added the addon javascript, and set
![cm](https://user-images.githubusercontent.com/9483735/26897742-c8c4a080-4b86-11e7-8d33-17c08fb46044.jpg)
autoCloseBrackets
to betrue
for CodeMirror.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{
,(
.