# Integrating Built-in CKEditor Wrapped in Litium Component into Custom Angular Panel

**URL:** <https://forum.litium.com/t/integrating-built-in-ckeditor-wrapped-in-litium-component-into-custom-angular-panel/3124>\
**Category:** Questions\
**Created:** [October 31, 2023, 3:56pm UTC](https://forum.litium.com/t/integrating-built-in-ckeditor-wrapped-in-litium-component-into-custom-angular-panel/3124 "2023-10-31T15:56:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wilmar.arias](https://avatars.discourse-cdn.com/v4/letter/w/22d042/32.png) [@wilmar.arias](https://forum.litium.com/u/wilmar.arias)\
**Post date:** [October 31, 2023, 3:56pm UTC](https://forum.litium.com/t/integrating-built-in-ckeditor-wrapped-in-litium-component-into-custom-angular-panel/3124/1 "2023-10-31T15:56:38Z")

</div>

I am currently working on a project where I have created a custom panel in the customer section using Angular. I have successfully added my Angular component and other functionalities to this panel. Now, I need to integrate the built-in CKEditor into my panel. However, it appears that this CKEditor is wrapped within a Litium component, and I am unsure on how to proceed with its integration.

I discovered that the CKEditor is registered as field-editor in the code, as shown below:

```auto
<field-editor></field-editor>

```

Litium version: _[7]_

---

<div class="post-metadata">

**Author:** ![ton.nguyen](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/ton.nguyen/32/989_2.png) [@ton.nguyen](https://forum.litium.com/u/ton.nguyen)\
**Post date:** [October 31, 2023, 4:57pm UTC](https://forum.litium.com/t/integrating-built-in-ckeditor-wrapped-in-litium-component-into-custom-angular-panel/3124/2 "2023-10-31T16:57:43Z")

</div>

You are right, the CKEditor is wrapped by field-editor to have language dropdowns and other stuff. In Litium 7, ng2-ckeditor is used to render the editor. Please check the document on how to install and use it in Angular [ng2-ckeditor - npm](https://www.npmjs.com/package/ng2-ckeditor)

---

<div class="post-metadata">

**Author:** ![wilmar.arias](https://avatars.discourse-cdn.com/v4/letter/w/22d042/32.png) [@wilmar.arias](https://forum.litium.com/u/wilmar.arias)\
**Post date:** [October 31, 2023, 11:31pm UTC](https://forum.litium.com/t/integrating-built-in-ckeditor-wrapped-in-litium-component-into-custom-angular-panel/3124/3 "2023-10-31T23:31:22Z")

</div>

Is there no way to use the wrapped version? I added the

following code  
my component

```auto
@Component({
    selector: "my-panel",
    templateUrl: "./my-panel.component.html",
    styleUrls: ["./my-panel.component.css"],
    changeDetection: ChangeDetectionStrategy.OnPush,
})
export class MyCustomPanel {    
    protected field: Field ={
        editLanguage: "en",
        viewLanguage: "en",
        isCultureSpecific: false,
        label: "hello word",
        name: "hello word",
        dirty: false,
        editable: true,
        readonly: false,
        undo: ?,
        options: ?,
        tooltip: ?,
    };  
}
template:

<field-editor [field]="field"></field-editor>

```

But I don’t know what properties it needs to work as a CKEditor or am I way off?.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [November 28, 2023, 11:32pm UTC](https://forum.litium.com/t/integrating-built-in-ckeditor-wrapped-in-litium-component-into-custom-angular-panel/3124/4 "2023-11-28T23:32:13Z")

</div>

Closed on November 28, 2023, 11:32pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
