Reputation: 11
Before storing data to database I must modify string . Here's my code
beforeCreate:function(value )
{
value.text = value.text.replace(/(\t|\n)/g, '');
}
How to add callback to this function? I know that there must participate callback.
Upvotes: 1
Views: 458