Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django CKEditor AllowedContent

Does anyone know how to get the advancedContentFilter working in the django-ckeditor config settings? Im trying to filter pasted in p tags to remove style attributes. Im using the following in settings.py but it does'nt seem to register.

CKEDITOR_CONFIGS = {
    'allowedContent':'p',
}
like image 359
sirFunkenstine Avatar asked Mar 20 '23 09:03

sirFunkenstine


1 Answers

This works for me

CKEDITOR_CONFIGS = {
  'default': {
    'removePlugins': 'stylesheetparser',
    'allowedContent': True,
  },
}
like image 123
Vladimir Evstratov Avatar answered Mar 29 '23 20:03

Vladimir Evstratov