ASP.Net 使用 CKEditor 到 Azure WebApp 的 MVC 应用程序提供 "Could not start CKFinder: Language file is missing or broken"

ASP.Net MVC Application with CKEditor to Azure WebApp gives "Could not start CKFinder: Language file is missing or broken"

我有一个带有 CKEditor 的 ASP.Net MVC 应用程序,它可以帮助我 create/edit 带有注释的图像。

我将我的图像放在 azure blob 存储中并尝试使用 CKEditor 对其进行编辑。我已经在适当的位置添加了 Azure 连接器。该应用程序在 IIS 中运行,能够访问 blob 存储中的图像并对其进行编辑。但是在迁移到 Azure Web App 之后,它无法加载语言文件并出现以下错误:

"Could not start CKFinder: Language file is missing or broken"

link 下方指出缺少 mime 类型,需要添加: CKFinder used in CKEditor does not work in my ASP

如何在 Azure WebApp(PaaS) 中更新它?

您应该将 .json MIME 类型添加到您的 IIS 配置中。请阅读文档 https://ckeditor.com/docs/ckfinder/ckfinder3-net/quickstart.html#quickstart_troubleshooting_json