1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-02-18 04:14:35 +01:00

incorporate autoCloseTags option from master branch

This commit is contained in:
Kushagra Gour 2018-11-17 01:21:18 +05:30
parent 21d44bf9f6
commit 232c47f326

@ -56,6 +56,7 @@ export default class UserCodeMirror extends Component {
this.cm.setOption('keyMap', prefs.keymap);
this.cm.setOption('lineWrapping', prefs.lineWrap);
this.cm.setOption('lineWrapping', prefs.autoCloseTags);
this.cm.refresh();
}
@ -71,7 +72,7 @@ export default class UserCodeMirror extends Component {
lineWrapping: !!prefs.lineWrap,
autofocus: options.autofocus || false,
autoCloseBrackets: true,
autoCloseTags: true,
autoCloseTags: !!prefs.autoCloseTags,
matchBrackets: true,
matchTags: options.matchTags || false,
tabMode: 'indent',