简体   繁体   English

在 CKEditor5 中构建后如何加载插件?

[英]How to load plugin after build in CKEditor5?

Currently working on a project that require the CKEditor5 to show a custom button in certain scenarios.目前正在处理一个需要 CKEditor5 在某些场景中显示自定义按钮的项目。 The button would have the function to interact with some information on the site.该按钮将具有 function 以与站点上的某些信息进行交互。

The only way to include the custom button in the toolbar in CKEditor5 is to create the plugin and build it.在 CKEditor5 的工具栏中包含自定义按钮的唯一方法是创建插件并构建它。 However, it would not be able for us to edit the button function when using ClassicEditor.Create(...) .但是,当使用ClassicEditor.Create(...)时,我们将无法编辑按钮 function 。 Is there a way to either create a custom button in toolbar without using plugin (maybe extraPlugins: [] would help?) or able to change custom button function in the process of creating CKEditor.有没有办法在不使用插件的情况下在工具栏中创建自定义按钮(也许extraPlugins: []会有所帮助?)或者能够在创建 CKEditor 的过程中更改自定义按钮 function。

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

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