A site
kindeditor.net/about.php
Second, the use of the editor, see the official documents
Third, the common initialization parameters
. 1, resizeType
2 or 1, 0,2 or drag to change the width and height can only change the height of 1, can not drag 0:00.
Data Type: Int
Default: 2
2, uploadJson
specify the server-side program to upload files.
Data Type: String
Default: basePath + 'php / upload_json.php'
3, extraFileUploadParams
upload images, Flash, video and audio, files, add support to the server along with other parameters.
Data Type: Array
default: {}
The main role : to solve the problem of file uploads csrf
4, filePostName
specify the name of the form to upload files.
Data type: String
Default value: imgFile
Note: The following are 2,3,4 and upload files, generally files are uploaded to the service of the media folder, other parameters look official documents
Fourth, examples
Profiles
MEDIA_URL = '/media/' MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
routing
path('upload/', views.upload),