angular.module('ngWig')
  .config(['ngWigToolbarProvider', function(ngWigToolbarProvider) {
    ngWigToolbarProvider.addCustomButton('clear-styles', 'nw-clear-styles-button');
  }])
  .component('nwClearStylesButton', {
    template: '<button ng-click="clearStyles()" ng-disabled="editMode" class="nw-button clear-styles" title="Clear Styles" ng-disabled="isDisabled">Clear Styles</button>',
    controller: function($scope) {
      $scope.clearStyles = function(){
          var container = angular.element(document.querySelector('#ng-wig-editable'));
          if(container){
              container.text(container[0].textContent);
              container[0].focus();
          }
      }
    }
  });


@@ -246,16 +246,22 @@
 -click=%22
+$ctrl.
 clearSty
@@ -264,16 +264,22 @@
 rStyles(
+$event
 )%22 ng-di
@@ -422,22 +422,16 @@
 unction(
-$scope
 ) %7B%0A    
@@ -436,14 +436,12 @@
     
-$scope
+this
 .cle
@@ -460,19 +460,219 @@
 unction(
+e
 )%7B%0A
+          // find the ngWig element that hosts the plugin%0A          var ngWigElement = e.target.parentElement.parentElement.parentElement.parentElement.parentElement;%0A          if(ngWigElement)%7B%0A    
         
@@ -709,12 +709,16 @@
 ent(
-docu
+ngWigEle
 ment
@@ -758,33 +758,8 @@
 ));%0A
-          if(container)%7B%0A
     

Use this instead of $scope. Use of plugin with multiple editors.