Add comment about CodeMirror.

This commit is contained in:
Florian Bruhin 2014-06-22 23:34:05 +02:00
parent 46c19012ab
commit 7aea12ad35

View File

@ -207,6 +207,8 @@ class WebView(QWebView):
log.mouse.debug("<object type='{}'> clicked.".format(objtype))
return config.get('input', 'insert-mode-on-plugins')
elif tag == 'div':
# CodeMirror is some java-script editor which hides the underlying
# textarea, but is editable.
if any([c.startswith('CodeMirror') for c in elem.classes()]):
return True
else: