10 border: 2px solid blue;
15 .scenario { margin-bottom: 16px;}
16 .scenario:first-line { font-weight: bold; margin-bottom: 16px;}
17 .expected-results:first-line { font-weight: bold }
22 <div class="explanation">
23 <div class="scenario">
26 Smart paste when pasting in the middle of a word.
28 <div class="expected-results">
31 Spaces should be added before and after the pasted word. It should look like this:
37 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
38 <div id="test" class="editing">
42 <script src="../editing.js"></script>
45 function editingTest() {
46 var target = document.getElementById('test');
47 var x = target.offsetLeft + target.offsetWidth / 2;
48 var y = target.offsetTop + target.offsetHeight / 2;
51 moveSelectionBackwardByWordCommand();
52 moveSelectionForwardByCharacterCommand();
53 moveSelectionForwardByCharacterCommand();
57 runDumpAsTextEditingTest(true);