The case is, when I append codemirror to an iframe node, with codemirror.css inserted into the iframe in advance, all the view part seems to work good, but input doesn’t work well. sometimes I can’t input anything, seems like keyboard event can not be caught. when I changed iframe back to div , all works well.
Is there any way to append codemirror to an iframe?
Here is my code. http://jsfiddle.net/1dtp7jq4/ After you double-click the input area, you can’t input anything.