如何使用Ionic在CKEditor 5中设置高度? [英] How can I set height in CKEditor 5 with Ionic?
问题描述
我想使用Ionic和Angular创建文本编辑器.
I want to create a text editor using Ionic and Angular.
我使用CKEditor 5应用了它,但是高度值没有改变.
I applied it using CKEditor 5 but the height value is not changed.
根据CKEditor 5文档,我可以通过config属性控制高度值.
According to the CKEditor 5 documentation, I can control the height value through the config attribute.
我已通过config选项确认段落"已翻译成韩文.
I have confirmed through the config option that 'paragraphs' are translated into Korean.
我的方法不对吗?
这是我的源代码.
我的源代码由'html','component.module.ts','component.ts'组成.
My source code consists of 'html', 'component.module.ts', 'component.ts'.
html模板
<ckeditor formControlName="bbsContent" [editor]="Editor" [config]="config" style="height: 300px" data=""></ckeditor>
component.module.ts
component.module.ts
import { CKEditorModule } from '@ckeditor/ckeditor5-angular';
imports: [
CKEditorModule
],
component.ts
component.ts
import '@ckeditor/ckeditor5-build-classic/build/translations/ko';
import * as ClassicEditor from '@ckeditor/ckeditor5-build-classic';
//ckeditor
export class Classname {
public Editor = ClassicEditor;
public config = {
language: 'ko',
height: 300
}
感谢阅读.
推荐答案
答案在 GH问题. https://ckeditor.com/docs上的文档/ckeditor5/latest/builds/guides/integration/frameworks/angular.html 即将更新,以涵盖Angular组件的样式.
The answer is in the GH issue. Docs on the https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/angular.html will be updated soon to cover styling of the Angular component.
这篇关于如何使用Ionic在CKEditor 5中设置高度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!