Javascript Copy Content Of A Div Into Clipboard From A Canvas Doesn't Work On Firefox
I need to copy the content of a popup into the clipboard as is inside a canvas (it's Openlayer 4 stuff, you add an overlay to the map and then you can use a div to parse it as a co
Solution 1:
Try this: make the element containing the text editable by adding the contenteditable
attribute prior to selecting/copying text. You can remove the attribute just after the copy command is executed.
Firefox is finicky about selecting content from non-content-editable elements in the DOM.
Post a Comment for "Javascript Copy Content Of A Div Into Clipboard From A Canvas Doesn't Work On Firefox"