Bug 1254025 - Force the CodeMirror editor to always use a textarea;r=jdescottes draft
authorBrian Grinstead <bgrinstead@mozilla.com>
Tue, 26 Apr 2016 07:00:53 -0700
changeset 356470 5fd9ca2e2ae27a57f1f6c561d289c584b55efc44
parent 356451 f1e0c231d7e49ea0f2e25eb3b64ed811d3614f81
child 519415 71bcccaefaed273f927197643fbba92bdadc6799
push id16527
push userbgrinstead@mozilla.com
push dateTue, 26 Apr 2016 14:01:08 +0000
reviewersjdescottes
bugs1254025
milestone49.0a1
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
devtools/client/sourceeditor/editor.js
--- 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: {}
   };