I have been attempting to utilize the angular ckeditor extension found at:
https://github.com/lemonde/angular-ckeditor
UPDATE: I have already injected 'ckeditor' into the app modules.
Within my partial html, I am including the following directive:
<div ckeditor="data_options" ng-model="note.note_data" ready="onReady()"></div>
and in the controller, I am adding these configuration options:
$scope.data_options = {
lang: 'en',
allowedContent: true,
entities: false,
extraPlugins: ['mathjax'],
mathJaxClass: 'm-equation',
mathJaxLib: 'http://cdn.mathjax.org/mathjax/2.6-latest/MathJax.js?config=TeX-AMS_HTML'
};
However, I keep encountering this error in the browser:
Uncaught TypeError: d.replace is not a functionA @ ckeditor.js:249(anonymous function) @ ckeditor.js:248(anonymous function) @ ckeditor.js:475(anonymous function) @ ckeditor.js:236e @ ckeditor.js:231A @ ckeditor.js:231r @ ckeditor.js:231(anonymous function) @ ckeditor.js:232
Could there be an error on my end or perhaps it's a bug? Are there any other alternatives available for using an angular wysiwyg editor with mathjax (tex/latex) support?