Hello all:
I am trying to create a component using haxe-codemirror.
I tried 2 scenarios:
-
Extend Editor component from TextArea. Use
CodeMirror.fromTextArea(cast this.getTextInput().element)
to generate the component. -
Extend Editor component from Box. Create a HTMLTextAreaElement and append it to this.element, and call CodeMirror.fromTextArea on that element.
Either way, the moment I do that the component disappears entirely from the page.
The issue seems to be because CodeMirror changes the TextArea element to display:none. But if I take out HaxeUI, CodeMirror can load just fine.
What am I missung?