vin_paste

Untitled

Jan 8th, 2021
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.36 KB | None | 0 0
  1. #CK editor congiurations
  2. CKEDITOR_UPLOAD_PATH = "uploads/"
  3. CKEDITOR_IMAGE_BACKEND = "pillow"
  4.  
  5. # Editor layout settings
  6. CKEDITOR_CONFIGS = {
  7.     'default': {
  8.         'width': '100%',
  9.         'height': 600,
  10.         'contentsCss': 'img {max-width: 100%;height: auto! important;}',
  11.         'toolbar': 'Custom',
  12.         'toolbar_Custom': [
  13.             [
  14.                 'Bold',
  15.                 'Italic',
  16.                 'Underline'
  17.             ],
  18.             [
  19.                 'Font',
  20.                 'FontSize',
  21.                 'TextColor',
  22.                 'BGColor',
  23.                 'Find',
  24.                 'Replace',
  25.                 '-',
  26.                 'SpellChecker'
  27.             ],
  28.             [
  29.                 'NumberedList',
  30.                 'BulletedList',
  31.                 '-',
  32.                 'Outdent',
  33.                 'Indent',
  34.                 '-',
  35.                 'JustifyLeft',
  36.                 'JustifyCenter',
  37.                 'JustifyRight',
  38.                 'JustifyBlock',
  39.                 'Table',
  40.                 'TableTools'
  41.             ],
  42.             [
  43.                 'Link',
  44.                 'Unlink'
  45.             ],
  46.             [
  47.                 'RemoveFormat',
  48.                 'Source',
  49.                 'Smiley',
  50.                 'Image',
  51.                 'Youtube',
  52.                 'Preview'
  53.             ]
  54.         ],
  55.  
  56.     },
  57. }
Advertisement
Add Comment
Please, Sign In to add comment