Property "disallowedContent" does not exist and locally, to properties "bodyClass" and "width" were set to None instead an empty string.
# if coming from collective.ckeditor < 4.10.0, disallowedContent does not exist
if hasattr(props, "disallowedContent"):
api.portal.set_registry_record(
"collective.ckeditor.browser.ckeditorsettings.ICKEditorSchema.disallowedContent",
safe_unicode(props.disallowedContent)
)
# do not fail if bodyClass is None
api.portal.set_registry_record(
"collective.ckeditor.browser.ckeditorsettings.ICKEditorSchema.bodyClass",
props.bodyClass or ''
)
# do not fail if width is None
api.portal.set_registry_record(
"collective.ckeditor.browser.ckeditorsettings.ICKEditorSchema.width",
props.width or ''
)
Hi @gotcha
Property "disallowedContent" does not exist and locally, to properties "bodyClass" and "width" were set to None instead an empty string.
Suggested changes:
Thank you,
Gauthier