I wish to integrate CKEDITOR 4 in my angular application but I have some difficulties to understand how to make some configurations which are better explained when used with other frameworks (i.e. jQuery). I followed this guide but it's very basic and it doesn't clarify many aspects:
Is there anybody who had my same needs and can help?
EDIT: I could find a way to load a local bundle version by adding the script section in angular.json file. This guarantees that the ckeditor.js file is loaded from local instead of CDN but it doesn't work. I opened a ticket in ckeditor github but they closed without giving a full explanation on why it doesn't work. Help is very welcome because I'm stuck on this!
Finally I figured out how to reach my goal. First of all, apparently there's a bug by using the script approach in the angular.json file then it can't be used. What I did was to deploy the ckeditor package as static resource of my web project (different than angular). Then, in the ckeditor tag I used the editorUrl attribute to access this local resource:
<ckeditor #ckeditortextarea editorUrl="http://localhost:7001/myapp/ckeditor4/ckeditor.js" id="myeditor" name="myeditor" tagName="textarea" (dataChange)="change($event)" (blur)="touched($event)" (ready)="ready($event)"></ckeditor>
and it worked! By this approach is possible to customize everything in the local deployed package. Regarding the access to the CKEDITOR singleton, it was easier than expected. In your component declare a variable (i.e. CKEDITOR) and in the ready event assign it as
this.CKEDITOR=window['CKEDITOR'];
That's all!