Open kokocola opened 7 years ago
Did you inject into the module ? I didnt need to inject into controller.
`paths: {
'ckeditor': '../../bower_components/angular-ckeditor/angular-ckeditor.min',
'ckeditor-core': '../../bower_components/ckeditor/ckeditor', },
shim: {
'ckeditor-core': { exports: 'CKEDITOR', deps: ['angular'] },
'ckeditor': { deps: ['ckeditor-core'] }, }`
define(['./module','ckeditor'],
var app = angular.module('MyModule'['ckeditor']);
Hope this helps
Hey Guys,
I'm trying to work through this AMD issue with RequireJs&Angular&Ckeditor but I'm having some issues currently.
Currently this is my setup
main.js file
paths: { 'ckeditor': '../../bower_components/angular-ckeditor/angular-ckeditor.min', 'ckeditor-core': '../../bower_components/ckeditor/ckeditor', }, shim: { 'ckeditor-core': { exports: 'CKEDITOR', deps: ['angular'] }, 'ckeditor': { deps: ['ckeditor-core'] }, }
test.js
define(['./module','ckeditor'], function (controllers,angularCkEditor) { controllers.controller('TestCtrl', [ '$scope', function($scope) { console.log(angularCkEditor); } }]; });
test.html
<div ckeditor="options" ng-model="content" ready="onReady()"></div>
Nothing shows for test.html and also when i log 'angularCkEditor', it fails but if i log ckeditor-core itself, it works.
Can someone see what I could be doing wrong?