当我在我的标签(div)中添加CKEditor时,它会破坏此标记的内容 为什么它会删除内容!! 这是我的指令CKEditor
import {Component, ElementRef, Input, OnInit,Directive} from '@angular/core';
@Directive({
selector: 'div[ckeditorContent]'
})
export class CKEditor implements OnInit {
@Input() ckeditorContent:string;
constructor(private _elm:ElementRef) {
CKEDITOR.inline(_elm.nativeElement);
}
ngOnInit() {
}
}