0.7.43
images in ckeditor
This commit is contained in:
@@ -211,6 +211,9 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
||||
|
||||
CKEDITOR_BASEPATH = "/static/ckeditor/ckeditor/"
|
||||
CKEDITOR_UPLOAD_PATH = "uploads/"
|
||||
CKEDITOR_RESTRICT_BY_DATE = False
|
||||
CKEDITOR_RESTRICT_BY_USER = True
|
||||
CKEDITOR_BROWSE_SHOW_DIRS = True
|
||||
|
||||
CKEDITOR_IMAGE_BACKEND = "pillow"
|
||||
|
||||
@@ -222,12 +225,12 @@ CKEDITOR_CONFIGS = {
|
||||
'default': {
|
||||
'height': 291,
|
||||
'width': '70vw',
|
||||
# 'filebrowserWindowHeight': 600,
|
||||
# 'filebrowserWindowWidth': "100%",
|
||||
'filebrowserWindowHeight': 600,
|
||||
'filebrowserWindowWidth': "100%",
|
||||
'toolbar': 'Custom',
|
||||
'forcePasteAsPlainText': True,
|
||||
# 'allowedContent': True,
|
||||
'disallowedContent': 'img{width,height};img[width,height]',
|
||||
'allowedContent': True,
|
||||
# 'disallowedContent': 'img{width,height};img[width,height]',
|
||||
# 'extraPlugins': 'image2',
|
||||
|
||||
'enterMode': 2,
|
||||
|
||||
Reference in New Issue
Block a user