我正在为Django创建自定义CkEditor。我遵循了https://ckeditor.com/docs/ckeditor4/latest/guide/plugin_sdk_sample_1.html,并尝试加载插件,但没有加载。当我将其他插件放入我的静态文件夹(public void SaveStreamToFile(string fileFullPath, Stream stream)
{
if (stream.Length == 0) return;
// Create a FileStream object to write a stream to a file
using (FileStream fileStream = System.IO.File.Create(fileFullPath, (int)stream.Length))
{
// Fill the bytes[] array with the stream data
byte[] bytesInStream = new byte[stream.Length];
stream.Read(bytesInStream, 0, (int)bytesInStream.Length);
// Use FileStream object to write to the specified file
fileStream.Write(bytesInStream, 0, bytesInStream.Length);
}
}
)并尝试加载它们时,它可以工作。
也许有人可以帮助我。
控制台错误:
lib/static/ckeditor/ckeditor/plugins/MYPLUGIN
答案 0 :(得分:0)
问题已解决
我不小心将plugin.js
plugins.js
命名为s
。