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 }
21 <div class=
"explanation">
22 <div class=
"scenario">
25 Smart paste when pasting at the beginning of a line before a word.
27 <div class=
"expected-results">
30 A space should be added after the pasted word before the preexising word. It should like this:
36 <div contenteditable
id=
"root" style=
"word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
37 <div id=
"test" class=
"editing">
41 <script src=
"../editing.js"></script>
44 function editingTest() {
45 var target
= document
.getElementById('test');
46 var x
= target
.offsetLeft
+ target
.offsetWidth
/ 2;
47 var y
= target
.offsetTop
+ target
.offsetHeight
/ 2;
50 moveSelectionBackwardByWordCommand();
54 runDumpAsTextEditingTest(true);