I am struggling to use ckeditor
within my html page built in angularjs
.
I have tried so many examples.
ng-ckeditor directiv
https://github.com/lemonde/angular-ckeditor. Step 1-3 are actually documented quite well in the README.md and the rest is pretty easy to develop...
link your js files in your html, keep track of the order:
use your controller and the directive inside your html as described. If you would like to pre-initialize your editor with data from your html, you could use something like this:
data-ng-init="content='this is a text with <a href="http://localhost/whatever.html" target="_blank">an embedded Link</a>'" contenteditable="true" ready="onReady()">
or you init your model variable(s) in your controller (hardcoded or via $http).
I have got this from How to use ckeditor in angular JS app?. and its worked for me.