سؤال

I'm getting the following error in the console since I've upgraded from TinyMCE 3 to TinyMCE 4:

Deprecated TinyMCE API call: .onBeforeSetContent.add(..)

What should I use instead?

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

المحلول

You will have to use

editor.on('BeforeSetcontent', function(event){
  console.log(event)
});
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top