Bug 1254025 - Force the CodeMirror editor to always use a textarea;r=jdescottes
By default it switches to a contentEditable when a custom UA is applied, which
causes errors when trying to insert a controller.
MozReview-Commit-ID: AdRUpO3NHNF
--- a/devtools/client/sourceeditor/editor.js
+++ b/devtools/client/sourceeditor/editor.js
@@ -154,16 +154,17 @@ function Editor(config) {
value: "",
mode: Editor.modes.text,
indentUnit: tabSize,
tabSize: tabSize,
contextMenu: null,
matchBrackets: true,
extraKeys: {},
indentWithTabs: useTabs,
+ inputStyle: "textarea",
styleActiveLine: true,
autoCloseBrackets: "()[]{}''\"\"``",
autoCloseEnabled: useAutoClose,
theme: "mozilla",
themeSwitching: true,
autocomplete: false,
autocompleteOpts: {}
};