I am trying to clean the pasted content before I add it to my text area. so I use a call back, but if I use plain text then the content is not calling in the call back, only html text is getting called in the function. Is there a way to find if the content pasted into the text area is html content or plain content? When a content is pasted in my text area I am using this
var bufferText = ((e.originalEvent || e).clipboardData || window.clipboardData).getData('text/html');
but the above code holds good for html. but I need to know if the content is a html or plain text.