JavaScript Angular-redactor: How to setup blur callback?

THE SITUATION:

I am using angular-redactor as editor for my app.

Everything is working fine except just one thing. I need to fire a blur event to ask confirmation to the user in case he want to leave the page without saving.

THE CODE

This is the redactor textarea:

<textarea cols="30" rows="30" ng-model="body" ng-blur="confirmation_email_exit()"redactor="
    { 
      minHeight: 370,
      focus: true,
      plugins: ['fontcolor', 'table', 'fullscreen', 'counter', 'fontfamily'],

    }">
</textarea>

This is an example of global options properly working:

app.config(function(redactorOptions) {

    redactorOptions.buttons = ['formatting', '|', 'bold', 'italic'];

});

THE QUESTION:

How can i fire a blur event with angular-redactor?

I have to call it in the view or setup as a global option?

Answer:1

In the following: ko.utils.arrayForEach(cards, function (card) { setTimeout(function () { observableData().saveCard(card); }, 1000); }); This is supposed to be ...

In the following: ko.utils.arrayForEach(cards, function (card) { setTimeout(function () { observableData().saveCard(card); }, 1000); }); This is supposed to be ...

  1. settimeout every second
  2. settimeout every 5 seconds
  3. settimeout every minute
  4. settimeout every 5 minutes
  5. settimeout every 1 second
  6. settimeout every hour
  7. settimeout every 10 seconds

I see this code in underscore.js. Here it is, with the alias applied: toString = ObjProto.toString, However, to use toString it is also accessible directly like this, w/ out using above code at all....

I see this code in underscore.js. Here it is, with the alias applied: toString = ObjProto.toString, However, to use toString it is also accessible directly like this, w/ out using above code at all....

  1. what purpose of object bar
  2. what's the purpose of object

I want to insert new line like a following. div.row div.span12 div(ng-repeat="(data in datas)") p data.text // insert new line when $index is the number divisible by 3. how does ...

I want to insert new line like a following. div.row div.span12 div(ng-repeat="(data in datas)") p data.text // insert new line when $index is the number divisible by 3. how does ...

  1. insert line within cell excel
  2. insert line within cell
  3. insert line break within excel cell
  4. insert new line within excel cell
  5. insert line break within cell
  6. insert new line within cell
  7. sed insert within line
  8. insert bullet within line

In my web application I have edit profile page. In editprofile page their is many fields like Name : <input type="text" name="name"/> Location : <input type="text" class="...

In my web application I have edit profile page. In editprofile page their is many fields like Name : <input type="text" name="name"/> Location : <input type="text" class="...