misc: fix ckeditor monkeypatch to keep widget attributes (#20974)

This commit is contained in:
Frédéric Péters 2018-01-03 18:49:02 +01:00
parent b0bea13bc9
commit ffee470ab7
1 changed files with 2 additions and 0 deletions

View File

@ -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: