Copying and pasting to WordPress “code editor” code via the front end and clipboard

I figured this out.

I’m using clipboard.js and found that making the data-clipboard-target a textarea, i.e. doing the copying from a text-only element, it had the same effect as pasting into a text editor.

Thanks!

Alex.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)