esvit / ng-ckeditor

BSD 3-Clause "New" or "Revised" License
265 stars 137 forks source link

Hoe to get instance of ckeditor in angularjs controller? #100

Open akkivaghasiya5 opened 8 years ago

akkivaghasiya5 commented 8 years ago

I want to get instance of ng-ckeditor. So I can set event, parameters etc on it.. But I can't get that how can I get that instance.

chagh commented 8 years ago

Same problem. How ?

petarsubotic commented 7 years ago

console.log(CKEDITOR.instances);

Will return the list of the instances, if you haven't set their ids, you will usually get editor1, editor2 ... You are able to access them as

CKEDITOR.instances.editor1.insertText('some text)