esvit/ng-ckeditor — pull request #14 by certainlysylvia (2014-04-25 18:58:12+00:00)
Title: Update ng-ckeditor.src.js

Exposes the editor being ready to broader application environment, allowing things like:

HTML
-----

Initialising ...

The Textarea with ckeditor directive etc here

APPLICATION
-----------

var editingController = [ "$scope", function( scope ) {
scope.editorOptions = {
config etc here
};

scope.$on( "ckeditor.ready", function( event ) {
scope.isReady = true;
});
}];

AdvancedEditor.controller("EditingController", editingController);

Allows us to hide everything until all rendered - useful when ckeditor needs to auto resize to fit placement space and when we add extra controls (external to the editor) that depend upon it etc ...