esvit / ng-ckeditor

BSD 3-Clause "New" or "Revised" License
265 stars 139 forks source link

Placeholder plugin throws an expection #36

Open kmmrameshkumar opened 9 years ago

kmmrameshkumar commented 9 years ago

I am trying to add placeholder plugin to my editor - http://ckeditor.com/addon/placeholder

Added placeholder plugin into ng-ckeditor/libs/plugins/.Editor loads with below exception

TypeError: Cannot read property 'parent' of undefined at editor.dataProcessor.dataFilter.addRules.text

Code

        CKEDITOR.on( 'instanceCreated', function( event ) {
            var editor = event.editor,
                element = editor.element;

            editor.on( 'configLoaded', function() {
                editor.config.extraPlugins = 'placeholder';
            });
        });

also the assigned scope value doesn't shows in the editor.

can anyone help me?

jacu85 commented 9 years ago

Me too, ckeditor v. 4.3 - placeholder v. 4.3.5