How to use iframes in django-cms

后端 未结 1 1297
遇见更好的自我
遇见更好的自我 2021-01-19 13:07

I am looking for a good solution to make it possible for endusers to insert iframes (Soundcloud) in a template placeholder. I thought about using the djangocms-txt-ckeditor

1条回答
  •  悲&欢浪女
    2021-01-19 13:41

    As suggested by @yakky in the comments I did update the Django environment to use "djangocms_text_ckeditor" in version 2.8.1.

    While using this settings in my settings.py, it works great:

    TEXT_ADDITIONAL_TAGS = ('iframe',)
    TEXT_ADDITIONAL_ATTRIBUTES = ('scrolling', 'allowfullscreen', 'frameborder', 'src', 'height', 'width')
    

    The (soundcloud) iframe shows up and no further problems did occur.

    Be aware: Updating your environment can cause failures. Always try first within a development environment.

    0 讨论(0)
提交回复
热议问题