Treat ACE editor as editable.
This commit is contained in:
parent
0f00ce244e
commit
cd117ccabb
@ -227,7 +227,8 @@ def _is_editable_div(elem):
|
|||||||
"""
|
"""
|
||||||
# Beginnings of div-classes which are actually some kind of editor.
|
# Beginnings of div-classes which are actually some kind of editor.
|
||||||
div_classes = ('CodeMirror', # Javascript editor over a textarea
|
div_classes = ('CodeMirror', # Javascript editor over a textarea
|
||||||
'kix-') # Google Docs editor
|
'kix-', # Google Docs editor
|
||||||
|
'ace_') # http://ace.c9.io/
|
||||||
for klass in elem.classes():
|
for klass in elem.classes():
|
||||||
if any([klass.startswith(e) for e in div_classes]):
|
if any([klass.startswith(e) for e in div_classes]):
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user