Skip to content
Snippets Groups Projects
Unverified Commit 456c9748 authored by Fredrik Jonsson's avatar Fredrik Jonsson Committed by GitHub
Browse files

Merge pull request #2495 from HyphaApp/bug/xss-richtext

Swith to django-tinymce from django-tinymce4-lite
parents 751e6a8b 89044ce0
No related branches found
No related tags found
No related merge requests found
from django import forms from django import forms
from django.forms import widgets from django.forms import widgets
from django.utils.safestring import mark_safe from django.utils.safestring import mark_safe
from tinymce import TinyMCE from tinymce.widgets import TinyMCE
from hypha.apply.review.options import NA, RATE_CHOICES from hypha.apply.review.options import NA, RATE_CHOICES
from hypha.apply.utils.options import MCE_ATTRIBUTES_SHORT from hypha.apply.utils.options import MCE_ATTRIBUTES_SHORT
......
...@@ -4,7 +4,7 @@ MCE_ATTRIBUTES = { ...@@ -4,7 +4,7 @@ MCE_ATTRIBUTES = {
'elementpath': False, 'elementpath': False,
'branding': False, 'branding': False,
'entity_encoding': 'raw', 'entity_encoding': 'raw',
'plugins': 'link image preview codesample table code lists wordcount', 'plugins': 'link table lists wordcount',
'toolbar1': 'undo redo | styleselect | bold italic | bullist numlist | table | link', 'toolbar1': 'undo redo | styleselect | bold italic | bullist numlist | table | link',
'style_formats': [ 'style_formats': [
{'title': 'Headers', 'items': [ {'title': 'Headers', 'items': [
......
...@@ -24,7 +24,7 @@ django-salesforce==3.1 ...@@ -24,7 +24,7 @@ django-salesforce==3.1
django-select2==7.6.1 django-select2==7.6.1
django-storages==1.11.1 django-storages==1.11.1
django-tables2==2.3.4 django-tables2==2.3.4
django-tinymce4-lite==1.8.0 django-tinymce==3.3.0
django-two-factor-auth==1.13 django-two-factor-auth==1.13
django-webpack-loader==0.7.0 django-webpack-loader==0.7.0
django==2.2.24 django==2.2.24
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment