remove 'mode' property when creating a new CodeMirror control. This appears to completely crash if the user puts in a <style ...> tag in the input. This was causing imported static tabs to not be editable

This commit is contained in:
Chris Dodge
2012-11-15 13:56:42 -05:00
parent a1a3b92517
commit 39c33b42b2

View File

@@ -1,7 +1,6 @@
class @HTMLEditingDescriptor
constructor: (@element) ->
@edit_box = CodeMirror.fromTextArea($(".edit-box", @element)[0], {
mode: "text/html"
lineNumbers: true
lineWrapping: true
})