Ckeditor5 Emoji插件无需npm或node.js即可安装

问题描述

我有laravel项目,但未安装npm或node,因此需要安装ckeditor5 Emoji插件-> https://github.com/wwalc/ckeditor5-emoji

据我了解,我必须:

  1. 插件文件复制/粘贴到ckeditor5 / plugins文件夹中

  2. import Emoji from '@wwalc/ckeditor5-emoji/src/emoji';添加到ckeditor.js文件

  3. 将Emoji插件添加到ckeditor工具栏:

    ClassicEditor .create( document.querySelector( '#editor' ),{ plugins: [ Essentials,Paragraph,heading,Bold,Italic,List,Emoji ],emoji: [ { name: 'smile',text: '?' },{ name: 'wink',{ name: 'cool',{ name: 'surprise',{ name: 'confusion',{ name: 'crying',text: '?' } ],toolbar: [ 'heading','undo','redo','bold','italic','emoji' ] } ) .then( editor => { window.editor = editor; } ) .catch( err => { console.error( err.stack ); } );

然后如何在不运行yarn run buildnpm run build的情况下在构建中运行它?如何将其手动添加到我现有的ckeditor5软件包中?

谢谢!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)