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 333191 b33098abf6244607dc6207b785788f05f2d4ed42
parent 333190 9eebb2835273857468a80e0e89013673352a37e7
child 333192 3cc4a98864ad31001292b38c97df30962b9e94d0
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdescottes, ritu
bugs1254025
milestone48.0a2
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: {}
   };