4 <script src=
"../../resources/dump-as-markup.js"></script>
11 border:
2px solid blue;
16 .scenario { margin-bottom:
16px;}
17 .scenario:first-line { font-weight: bold; margin-bottom:
16px;}
18 .expected-results:first-line { font-weight: bold }
22 <div class=
"explanation">
23 <div class=
"scenario">
26 Smart paste when pasting after a word and before a space and another word.
28 <div class=
"expected-results">
31 A space should be added between the preexisting word and the word that's pasted. No space should be added after the pasted word. It should 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 doubleClickAtSelectionStart();
48 moveSelectionForwardByCharacterCommand();
52 runDumpAsTextEditingTest(true);