looking for some solutions? You are welcome.

SOLVED: why "on update" in grapes js not working for me?

Jeffrin J:

Below is the grapejs code:

var editor = grapesjs.init({
 ...
});

editor.on('update', function(){
  console.log("update called");
});

editor.on('canvasScroll', function () {
   console.log("scroll called");
});

I am trying to call a function when any component or text or html or style gets updated. How do I do that? It looks like update event would call a function if there is any change. But it is not working. canvasScroll is working for me. What is wrong in this code? Can anyone please help me.

Thanks



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
Share:

No comments:

Recent