onBeforePaste callback - #399 monoblaine