readonly spreadsheet restriction

Hello, how to set the restriction of paste(ctrl+v) function in readonly spreadsheet?
thanks!

Hello,

Please check Code Snippet