9 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
13 function editingTest() {
14 extendSelectionForwardByLineCommand();
17 moveSelectionBackwardByCharacterCommand();
18 insertParagraphCommand();
19 moveSelectionBackwardByCharacterCommand();
20 pasteAndMatchStyleCommand();
25 <title>Paste and match style on an empty (but styled) line</title>
29 <p>This tests paste and match style on an empty (but styled) line</p>
30 <p>The first line is copied (unstyled), then it's bolded, then a paragraph separator is inserted and the original unstyled line is pasted (with style matching).</p>
34 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
35 <div id="test" class="editing">this text should end up bold</div>