Trigger and even when a nicedit toolbar button has finished executing or has been clicked

StackOverflow https://stackoverflow.com/questions/10076667

  •  30-05-2021
  •  | 
  •  

سؤال

I am trying to create and automatic preview mechanism for some content entered with "nicedit" editor. And I need to bind or be alerted when buttons like "bold", etc., have been clicked in order to update the preview panel. How do I hook into this functionality?

هل كانت مفيدة؟

المحلول

I ended up using the Google Mutations library to listen to changes made to the preview page, instead of listening on button events. Ended up being the better choice for me.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top