djangocms-text-ckeditor

How to use iframes in django-cms

做~自己de王妃 提交于 2019-12-20 01:44:12
问题 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 plugin. In it documentation it says to use the configurable sanitizer to accomplish this: djangocms-text-ckeditor uses html5lib to sanitize HTML to avoid security issues >and to check for correct HTML code. Sanitisation may strip tags usesful for some >use cases such as iframe; you may customize the tags and attributes

“render_placeholder” not showing up in djangoCMS template

笑着哭i 提交于 2019-12-11 07:34:51
问题 I have followed the instructions on the following site in order to render a placeholder field from a model, but I didn't manage. http://docs.django-cms.org/en/release-3.4.x/how_to/placeholders.html This is my model. from django.db import models import uuid from django.utils import timezone from cms.models.fields import PlaceholderField class HomePage(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False, unique=True) my_placeholder = PlaceholderField(

CKEditor Link input not working in modal

ⅰ亾dé卋堺 提交于 2019-12-11 06:17:39
问题 I've got a project in which I use a modal with a form and a ckeditor and the Link input doesn't work. Here's a fiddle that recreates this problem: http://jsfiddle.net/8t882a2s/3/ And the code of this example. HTML: <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×<

How to use iframes in django-cms

家住魔仙堡 提交于 2019-12-01 19:55:13
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 plugin. In it documentation it says to use the configurable sanitizer to accomplish this: djangocms-text-ckeditor uses html5lib to sanitize HTML to avoid security issues >and to check for correct HTML code. Sanitisation may strip tags usesful for some >use cases such as iframe; you may customize the tags and attributes allowed by >overriding the TEXT_ADDITIONAL_TAGS and TEXT_ADDITIONAL_ATTRIBUTES settings: TEXT_ADDITIONAL