Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

[cmv3] Configure autoCloseTag add-on using default settings #2759

Merged
merged 2 commits into from
Feb 1, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/editor/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,7 @@ define(function (require, exports, module) {
"Esc": function (instance) {
self.removeAllInlineWidgets();
},
"Cmd-Left": "goLineStartSmart",
"'>'": function (cm) { cm.closeTag(cm, '>'); },
"'/'": function (cm) { cm.closeTag(cm, '/'); }
"Cmd-Left": "goLineStartSmart"
};

// We'd like null/"" to mean plain text mode. CodeMirror defaults to plaintext for any
Expand All @@ -348,7 +346,12 @@ define(function (require, exports, module) {
lineNumbers: true,
matchBrackets: true,
dragDrop: false, // work around issue #1123
extraKeys: codeMirrorKeyMap
extraKeys: codeMirrorKeyMap,
autoCloseTags: {
whenOpening: true,
whenClosing: true,
indentTags: []
}
});

// Can't get CodeMirror's focused state without searching for
Expand Down