You have to do the following If you want to use placeholder or other plugins
1- go to this page (https://ckeditor.com/cke4/addons/plugins/all) and download your plugin(like placeholder) and place it in the assets folder of your project
2- include ckeditor from a CDN (in the index.html)
<script src="https://cdn.ckeditor.com/4.12.1/full-all/ckeditor.js"></script>
3- reference the placeholder plugin (in the index.html)
<script src="./assets/ckediotr/plugins/placeholder/plugin.js"></script>
Now, it's time to use it
in the app.component :
export class AppComponent implements OnInit {
ckeditorContent = 'angualrckeditor';
ngOnInit(): void {
CKEDITOR.on('instanceCreated', function (event, data) {
var editor = event.editor,
element = editor.element;
editor.name = "content"
});
}
}
in the app.component.html
<form #form="ngForm">
<ckeditor #myEditor [(ngModel)]="ckeditorContent" name="ckeditorContent"
[config]="{uiColor: '#a4a4a4' , allowedContent: false,forcePasteAsPlainText: false , extraPlugins: 'placeholder'}"
debounce="500"> </ckeditor>
</form>