I am trying to add custom button in CKEditor. I am using this CKEditor ng2-ckeditor.
It is working fine. but I want to add a button. on cliking this button will add a rails template tag
Example:
I can add the button like example below, but I dont know how to write its method. that will inser <%= sender_name %>
tag on the current position of text in CKEditor.
<ckeditor
[(ngModel)]="ckeditorContent">
<ckbutton [name]="'saveButton'"
[command]="'saveCmd'"
(click)="save($event)"
[icon]="'save.png'"
[label]="'Save Document'"
[toolbar]="'clipboard,1'">
</ckbutton>
</ckeditor>
please help me. how can I do that in angular2 typescript.