Angular 10+ ckedtior5+结盟
我试图使该编辑器起作用。
我已经从NPM安装了三个基本编辑器模块,
"@ckeditor/ckeditor5-angular": "^4.0.0",
"@ckeditor/ckeditor5-build-classic": "^34.2.0",
"@ckeditor/ckeditor5-alignment": "^34.2.0",
基本编辑器运行良好,但是我找不到使对齐模块可行的方法。 这是我的配置:
import Alignment from '@ckeditor/ckeditor5-alignment/src/alignment';
var editorConfig: Object = {
toolbar: {
items: [
'heading',
'|',
'bold','italic','link',
'bulletedList',
'numberedList',
'|',
'alignment:left', 'alignment:right', 'alignment:center', 'alignment:justify',
'imageUpload',
'blockQuote',
'undo',
'redo'
]
},
plugins : [ Alignment ]
};
当我添加对齐插件时,汇编破坏了无限错误:
./node_modules/@ckeditor/ckeditor5-core/theme/icons/align-bottom.svg:1:0 - Error: Module parse failed: Unexpected token (1:0)
Im trying to make this editor works.
I've installed the three basic editor module from NPM
"@ckeditor/ckeditor5-angular": "^4.0.0",
"@ckeditor/ckeditor5-build-classic": "^34.2.0",
"@ckeditor/ckeditor5-alignment": "^34.2.0",
The basic editor works well but I cant find a way to make Alignment module works.
This is my configuration:
import Alignment from '@ckeditor/ckeditor5-alignment/src/alignment';
var editorConfig: Object = {
toolbar: {
items: [
'heading',
'|',
'bold','italic','link',
'bulletedList',
'numberedList',
'|',
'alignment:left', 'alignment:right', 'alignment:center', 'alignment:justify',
'imageUpload',
'blockQuote',
'undo',
'redo'
]
},
plugins : [ Alignment ]
};
When I add Alignment plugin, compile broke with an infinite errors likes:
./node_modules/@ckeditor/ckeditor5-core/theme/icons/align-bottom.svg:1:0 - Error: Module parse failed: Unexpected token (1:0)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论