简体   繁体   English

如何加速CKEditor

[英]How to speed up CKEditor

We are building a blog-like application and we are in the process of choosing a WYSIWYG editor. 我们正在构建类似博客的应用程序,我们正在选择WYSIWYG编辑器。 We need very few features, so our first choice was jwysiwyg . 我们需要很少的功能,所以我们的首选是jwysiwyg It's very fast but it felt somewhat immature for our needs, so we switched to CKEditor (with its jQuery plugin). 它的速度非常快,但对我们的需求感觉有点不成熟,所以我们切换到CKEditor(带有jQuery插件)。 It's very stable and very configurable, but it takes a while for the first editor instance to appear... We followed the performance guidelines but we're still not satisfied with the outcome. 它非常稳定且可配置,但第一个编辑器实例出现需要一段时间......我们遵循了性能指南,但我们仍对结果不满意。
What could we try? 我们可以尝试什么? Is there a trimmed-down version/fork of CKEditor we could use? 我们可以使用CKEditor的精简版/分叉吗? Or is it already at "maximum speed", due to its load-as-needed plugin architecture? 或者它是否已经处于“最高速度”,因为它是按需加载的插件架构?

If you don't need all the features, then the first step is to recompile it removing all the plugins that you don't want, that way it will be smaller and there will be less code running at initialization. 如果你不需要所有的功能,那么第一步就是重新编译它,删除你不想要的所有插件,这样它会更小,并且在初始化时运行的代码会更少。

Also, if you are using custom plugins, then you should merge them into that ckeditor.js. 此外,如果您使用自定义插件,则应将它们合并到ckeditor.js中。

After that, it's a matter of checking if there are still other extra files that are being downloaded that you can combine (like using only one language file). 之后,需要检查是否还有其他可以组合的额外文件(例如只使用一种语言文件)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM