How can I set height in CKEditor 5 with Ionic?

Deadly 提交于 2019-12-01 12:21:56

问题


I want to create a text editor using Ionic and Angular.

I applied it using CKEditor 5 but the height value is not changed.

According to the CKEditor 5 documentation, I can control the height value through the config attribute.

I have confirmed through the config option that 'paragraphs' are translated into Korean.

Is my approach wrong?

Here is my source code.

My source code consists of 'html', 'component.module.ts', 'component.ts'.

html template

<ckeditor formControlName="bbsContent" [editor]="Editor" [config]="config" style="height: 300px" data=""></ckeditor>

component.module.ts

import { CKEditorModule } from '@ckeditor/ckeditor5-angular';
imports: [
   CKEditorModule
  ],

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
  }

enter image description here

Thanks for reading.


回答1:


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.



来源:https://stackoverflow.com/questions/52967825/how-can-i-set-height-in-ckeditor-5-with-ionic

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!