How to add Copy to clipboard functionality in ExtJs?

后端 未结 1 385
旧巷少年郎
旧巷少年郎 2021-01-22 03:10

How to add Copy to clipboard functionality in ExtJs? It\'s working fine with IE browser but not Firefox, What else has to be altered to make it work in FF browser.

Code:

1条回答
  •  故里飘歌
    2021-01-22 03:27

    Answer: Firefox has to be altered. It cannot be done with JavaScript alone.

    Clipboard access in the browser is considered a security risk. See this page for an explanation.

    That said, you can achieve this with a combination of Flash and JavaScript. Zero Clipboard is one way.

    0 讨论(0)
提交回复
热议问题