我想对齐ckeditor上的左o右图像,我安装了@ckeditor/ckeditor 5-映像。
我在我的component.ts文件中使用了这个配置:
import * as ClassicEditor from '@ckeditor/ckeditor5-build-classic';
editor = ClassicEditor;
ckConfig = {
extraPlugins: [ this.TheUploadAdapterPlugin ],
image: {
style: ['full', 'side', 'alignLeft', 'alignRight'],
toolbar: [ 'imageStyle:full', 'imageStyle:side', 'imageStyle:alignRight', 'imageStyle:alignLeft', '|', 'imageTextAlternative' ]
}
};这是我的模板:
<ckeditor [editor]="editor" [config]="ckConfig" formControlName="descriptioncol"></ckeditor>
但我在我的控制台上看到了这些警告:
ckeditor.js:5 toolbarview-item-unavailable: The requested toolbar item is unavailable. Read more: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html#error-toolbarview-item-unavailable
{name: "imageStyle:alignLeft"}然后,我没有选择对齐我的图像左或右。
有人能帮我吗?请。
谢谢。
发布于 2021-07-28 09:09:21
而不是“风格”,它应该是“风格”。:)
https://stackoverflow.com/questions/55188774
复制相似问题