Browse Source

Merge pull request #215 from hbrunn/8.0-web_ckeditor-check_applied_patch

[IMP] check if we have an lxml with the upstream
pull/307/head
Markus Schneider 9 years ago
parent
commit
a0b47fbaf2
  1. 3
      web_ckeditor4/models/ckeditor_monkeypatch.py

3
web_ckeditor4/models/ckeditor_monkeypatch.py

@ -29,7 +29,8 @@ class CkeditorMonkeypatch(models.AbstractModel):
def _register_hook(self, cr):
marker = self._name.replace('.', '_')
if not hasattr(clean, marker):
if not hasattr(clean, marker) \
and not hasattr(clean, '_is_image_dataurl'):
# monkey patch lxml's html cleaner to allow image data urls
if hasattr(clean, '_is_javascript_scheme'):
# this is the case in lxml >= 3.3

Loading…
Cancel
Save