mirror of
https://github.com/chinchang/web-maker.git
synced 2025-02-20 13:16:43 +01:00
incorporate autoCloseTags option from master branch
This commit is contained in:
parent
21d44bf9f6
commit
232c47f326
@ -56,6 +56,7 @@ export default class UserCodeMirror extends Component {
|
|||||||
|
|
||||||
this.cm.setOption('keyMap', prefs.keymap);
|
this.cm.setOption('keyMap', prefs.keymap);
|
||||||
this.cm.setOption('lineWrapping', prefs.lineWrap);
|
this.cm.setOption('lineWrapping', prefs.lineWrap);
|
||||||
|
this.cm.setOption('lineWrapping', prefs.autoCloseTags);
|
||||||
|
|
||||||
this.cm.refresh();
|
this.cm.refresh();
|
||||||
}
|
}
|
||||||
@ -71,7 +72,7 @@ export default class UserCodeMirror extends Component {
|
|||||||
lineWrapping: !!prefs.lineWrap,
|
lineWrapping: !!prefs.lineWrap,
|
||||||
autofocus: options.autofocus || false,
|
autofocus: options.autofocus || false,
|
||||||
autoCloseBrackets: true,
|
autoCloseBrackets: true,
|
||||||
autoCloseTags: true,
|
autoCloseTags: !!prefs.autoCloseTags,
|
||||||
matchBrackets: true,
|
matchBrackets: true,
|
||||||
matchTags: options.matchTags || false,
|
matchTags: options.matchTags || false,
|
||||||
tabMode: 'indent',
|
tabMode: 'indent',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user