Re: [editing] What do we need to integrate with the clipboard api? (#64)

I think the answer is "nothing"?

Certainly there's still a method called execCommand on document if there is an element with cE=events in the DOM. Calling ```execCommand('copy')``` should work document-wide, including any selection that might be inside a cE=events element. The copy event will fire so a script that has registered a 'copy' listener (for example on document) will be able to control what is written to the clipboard.

At some point in the future we make a better clipboard API (say ```window.clipboard.add(clipboardDataItem) .. window.clipboard.commit()```) and there's still nothing you need to do in your spec, because script authors will just use those commands directly, and it will just work.

Right?

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/issues/64#issuecomment-130358998

Received on Wednesday, 12 August 2015 16:15:40 UTC