问题描述
我有laravel项目,但未安装npm或node,因此需要安装ckeditor5 Emoji插件-> https://github.com/wwalc/ckeditor5-emoji。
据我了解,我必须:
-
将
import Emoji from '@wwalc/ckeditor5-emoji/src/emoji';
添加到ckeditor.js文件中 -
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 build
或npm run build
的情况下在构建中运行它?如何将其手动添加到我现有的ckeditor5软件包中?
谢谢!
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)