How can I determine if the change buffer of a paste event, that is a “beforeChange” where change.origin===“paste” originated from CM or some other program ?
Rationale: I am trying to implement html paste in FirePad. For copy/paste inside FP (that is inside it’s underlying CM) I don’t want to do anything, however when the clipboard pasted is from an outside source I need to try and create a valid FP representation of it (as html).
Thanks !