From 24f62791b15cefb6125cc1586c493d3d5b07ff73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 3 Jan 2018 18:49:02 +0100 Subject: [PATCH] misc: fix ckeditor monkeypatch to keep widget attributes (#20974) --- combo/monkeypatch.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/combo/monkeypatch.py b/combo/monkeypatch.py index 8ad9be2..d4bf760 100644 --- a/combo/monkeypatch.py +++ b/combo/monkeypatch.py @@ -28,6 +28,8 @@ def ckeditor_render(self, name, value, attrs=None): if value is None: value = '' final_attrs = {'name': name} + if getattr(self, 'attrs', None): + final_attrs.update(self.attrs) if attrs: final_attrs.update(attrs) if 'filebrowserUploadUrl' not in self.config: -- 2.15.1