diff --git a/apps/content_types/content_types.py b/apps/content_types/content_types.py index 6b052afbad..b995c3ab68 100644 --- a/apps/content_types/content_types.py +++ b/apps/content_types/content_types.py @@ -98,6 +98,10 @@ class ContentTypesResource(superdesk.Resource): "type": "boolean", "default": False, }, + "embeddable": { + "type": "boolean", + "default": False, + }, "created_by": superdesk.Resource.rel("users", nullable=True), "updated_by": superdesk.Resource.rel("users", nullable=True), "init_version": {"type": "integer"}, diff --git a/superdesk/editor_utils.py b/superdesk/editor_utils.py index 5d57ddba59..2c56ce8eac 100644 --- a/superdesk/editor_utils.py +++ b/superdesk/editor_utils.py @@ -38,6 +38,7 @@ TABLE = "TABLE" MULTI_LINE_QUOTE = "MULTI-LINE_QUOTE" IMAGE = "IMAGE" +ARTICLE_EMBED = "ARTICLE_EMBED" EDITOR_STATE = "draftjsState" ENTITY_MAP = "entityMap" @@ -314,6 +315,8 @@ def __init__(self, content_editor): TABLE: self.render_table, MULTI_LINE_QUOTE: self.render_table, IMAGE: self.render_image, + # TODO: needs to be fixed. I added this for now to simply avoid it from crashing. + ARTICLE_EMBED: lambda props: DOM.create_element("hr"), }, } )