From 21da7645654755fa6a1e86e3254dacfc1b4f3fe4 Mon Sep 17 00:00:00 2001
From: 4ertovo4ka <4ertovo4ka@gmail.com>
Date: Sun, 15 Sep 2019 21:24:45 +0300
Subject: [PATCH 1/2] update wysiwyg settings & code highlight on site
---
python_ru/settings/base.py | 7 ++++---
templates/base.html | 4 ++++
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/python_ru/settings/base.py b/python_ru/settings/base.py
index fcb956a..3612e3a 100644
--- a/python_ru/settings/base.py
+++ b/python_ru/settings/base.py
@@ -160,14 +160,14 @@
'Language']},
{'name': 'links', 'items': ['Link', 'Unlink', 'Anchor']},
{'name': 'insert',
- 'items': ['Image', 'CodeSnippet', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak']},
+ 'items': ['Image', 'CodeSnippet', 'Embed', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak']},
'/',
{'name': 'styles', 'items': [
'Styles', 'Format', 'Font', 'FontSize']},
{'name': 'colors', 'items': ['TextColor', 'BGColor']},
],
'toolbar': 'toolbar_CustomConfig', # put tollbar config name here
- 'removePlugins': 'stylesheetparser',
+ 'removePlugins': ','.join(['stylesheetparser', 'flash']),
'extraPlugins': ','.join([
'codesnippet',
'div',
@@ -180,7 +180,8 @@
'clipboard',
'dialog',
'dialogui',
- 'elementspath'
+ 'elementspath',
+ 'embed'
]),
},
}
diff --git a/templates/base.html b/templates/base.html
index ab89681..9c3f190 100755
--- a/templates/base.html
+++ b/templates/base.html
@@ -16,6 +16,10 @@
+
+
+
From bbbb60b1864dab4bfa8cf8107b14e752618753ef Mon Sep 17 00:00:00 2001
From: 4ertovo4ka <4ertovo4ka@gmail.com>
Date: Tue, 17 Sep 2019 14:45:46 +0300
Subject: [PATCH 2/2] allowed more html-tags
---
python_ru/settings/base.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/python_ru/settings/base.py b/python_ru/settings/base.py
index 3612e3a..d17e29d 100644
--- a/python_ru/settings/base.py
+++ b/python_ru/settings/base.py
@@ -168,6 +168,7 @@
],
'toolbar': 'toolbar_CustomConfig', # put tollbar config name here
'removePlugins': ','.join(['stylesheetparser', 'flash']),
+ 'allowedContent': True,
'extraPlugins': ','.join([
'codesnippet',
'div',