Ticket #8322: 8322_browser.html

File 8322_browser.html, 411 bytes (added by Garry Yao, 9 years ago)
Line 
1<!DOCTYPE html>
2<script type="text/javascript">
3        function doPaste()
4        {
5                var content = frames[ 'clipboard' ].document.body.innerHTML;
6                document.selection.createRange().pasteHTML( content );
7        }
8</script>
9<button onclick="doPaste()">Paste</button>
10<div contenteditable="true">
11        Make text selection here and press the above paste button.
12</div>
13<iframe id="clipboard" src="content.html" frameborder="0"></iframe>
© 2003 – 2021 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy