Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ng-ckeditor.src.js #14

Merged
merged 1 commit into from Apr 30, 2014
Merged

Update ng-ckeditor.src.js #14

merged 1 commit into from Apr 30, 2014

Conversation

certainlysylvia
Copy link
Contributor

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

HTML

<div ng-controller="EditingController">
    <div ng-cloak ng-hide="isReady" class="highlight">
    Initialising ...
    </div>
    <div ng-cloak ng-show="isReady">
        The Textarea with ckeditor directive etc here
    </div>
</div>

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 ...

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

HTML
-----

<div ng-controller="EditingController">
    <div ng-cloak ng-hide="isReady" class="highlight">
	Initialising ...
    </div>
    <div ng-cloak ng-show="isReady">
        The Textarea with ckeditor directive etc here
    </div>
</div>

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 ...
esvit added a commit that referenced this pull request Apr 30, 2014
@esvit esvit merged commit 7a949c6 into esvit:master Apr 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants