当我想在CKEditor中上传图像时,它会给出“文件上传过程中发生的HTTP错误”(错误状态:400)。
请检查下面的图像
inside urls.py
from django.contrib import admin
from django.urls import path,include
from django.conf import settings
from django.conf.urls import url
from django.conf.urls.i18n import i18n_patterns
from django.conf.urls.static import s
我正在尝试将我的CKEDITOR版本从4.4.1升级到4.5.1。为此,我上传了buil-config.js,以获取与以前相同的最新ckeditor版本的插件。
问题是,使用下载的CKEDITOR,每当我尝试使用它时,我得到的错误CKEDITOR.tools.getindex不是一个函数。这个错误来自于小部件插件。
在第1951行的小部件/plugin.js文件中,您有:
var index = CKEDITOR.tools.getIndex( widgetsRepo._.upcasts, function( element ) {
这正是问题所在。有什么想法吗?
非常感谢。
我正在创建Vue spa并在这里使用集成CKEditor,我尝试通过将以下代码添加到我的app.js中来完成与本教程类似的操作
import Vue from 'vue'
import ClassicEditor from '@ckeditor/ckeditor5-build-classic'
import documentEditor from '@ckeditor/ckeditor5-build-decoupled-document'
import VueCkeditor from 'vue-ckeditor5'
const
我正试图将上传的图像嵌入编辑器中。我的filebrowserUploadUrl是/api/m/image,它似乎工作得很好。单击Send it to the Server按钮后,会出现如下脚本错误:
image.js?t=H4PG:19 Uncaught TypeError: Cannot read property 'setCustomData'
of undefined
at textInput.onChange (image.js?t=H4PG:19)
at textInput.n (ckeditor.js:10)
at textInput.CKEDITOR
在我的Django管理面板上,我可以使用CKEditor上传图片。但是,图像不会显示,并返回404 not found on the image file path。
实际上,我的图像文件可以在一个专用的url上找到: media.mysite.com
但是,CKEditor正在尝试从mywebsite.com/media/uploads/...获取文件,所以我收到404错误是很正常的。
告诉CKEditor使用media.mysite.com获取任何图像的好参数是什么?
Settings.py
MEDIA_ROOT = "/var/www/media/mysite/"
MED