Bug 1254025 - Force the CodeMirror editor to always use a textarea. r=jdescottes a=ritu
authorBrian Grinstead <bgrinstead@mozilla.com>
Tue, 26 Apr 2016 07:00:53 -0700
changeset 324498 2516691981a36595ca0bd33e50aa5508423f33d8
parent 324497 3ab8e6e778285d31984675edfdadffac9f4e2a7a
child 324499 a49ba1e48c59e5f0ac08becf6439372d2dd52670
push id6038
push userkwierso@gmail.com
push dateTue, 31 May 2016 23:02:48 +0000
treeherdermozilla-beta@cf6ec12bd620 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdescottes, ritu
bugs1254025
milestone47.0
Bug 1254025 - Force the CodeMirror editor to always use a textarea. r=jdescottes a=ritu 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: {}
   };