gpt4 book ai didi

angular - 如何使用 ng2-ckeditor 作为内联?

转载 作者:太空狗 更新时间:2023-10-29 18:20:21 25 4
gpt4 key购买 nike

我使用过 ng2-ckeditor 但我需要将它用作内联,那么我如何将它用作内联?

https://www.npmjs.com/package/ng2-ckeditor

我正在使用 angular-cli 进行 angular2 开发。

最佳答案

要在 ng2-ckeditor 中内联,更改 ng2-ckeditor/src 中的 ckeditor.component.js

更改 this.instance = CKEDITOR.replace(this.host.nativeElement, config);this.instance = CKEDITOR.inline(this.host.nativeElement, config);这在我的本地系统中有效,但在生产中面临问题

但是在替换这个之后我得到了“无法设置未定义的属性‘dir’”

我已经尝试在 index.html 中设置 base_path 但没有帮助。

关于angular - 如何使用 ng2-ckeditor 作为内联?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43511437/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com