| EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document |
| EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification |
| EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification |
| EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification |
| EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification |
| EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification |
| EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification |
| EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification |
| EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification |
| EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text > P > CENTER > DIV > DIV > BODY > HTML > #document to 86 of #text > P > CENTER > DIV > DIV > BODY > HTML > #document |
| EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of P > CENTER > DIV > DIV > BODY > HTML > #document to 2 of CENTER > DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of P > CENTER > DIV > DIV > BODY > HTML > #document to 0 of P > CENTER > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE |
| EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification |
| EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification |
| EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 0 of P > CENTER > DIV > DIV > BODY > HTML > #document to 0 of P > CENTER > DIV > DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted |
| EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of CENTER > DIV > DIV > BODY > HTML > #document to 2 of CENTER > DIV > DIV > BODY > HTML > #document toDOMRange:range from 85 of #text > P > CENTER > DIV > DIV > BODY > HTML > #document to 85 of #text > P > CENTER > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE |
| EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification |
| EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification |
| EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification |
| |
| |
| Tests: |
| |
| Bug fix for <rdar://problem/4180820> Erroneous spacing between lines introduced on paste |
| |
| Applying block styles, like text-align, used to wrap paragraphs that needed block style changes in clones of other paragraphs in the document. This would almost always introduce unwanted styles. |
| |
| |
| Before cut: |
| | "\n" |
| | <div> |
| | class="editing" |
| | id="test" |
| | "\n" |
| | <center> |
| | "\n" |
| | <p> |
| | "\n<#selection-anchor>This is an " |
| | <b> |
| | "interactive" |
| | " documentation site, so please help out by posting any useful information that you've had to search out." |
| | <br> |
| | "\n(Adding to this " |
| | <a> |
| | href="db.cgi?Wiki_Is_So_Easy" |
| | "wiki is so easy" |
| | ", you can't screw it up). See " |
| | <a> |
| | href="db.cgi?Wiki_Reference" |
| | "Wiki Reference" |
| | " for text formatting syntax." |
| | <br> |
| | "\nInfo for setting up your own wiki is at " |
| | <a> |
| | href="db.cgi?About_Howto.Apple.Com" |
| | "about howto.apple.com" |
| | "." |
| | <br> |
| | "\nCheck out a cool wiki editor application that helps in wiki generation: " |
| | <a> |
| | href="db.cgi?Wikinator" |
| | "Wikinator" |
| | "\n" |
| | <p> |
| | "\nStart browsing the topics below, or use the search field at the bottom of every page.<#selection-focus>\n" |
| | "\n" |
| | "\n" |
| |
| After cut: |
| | "\n" |
| | <div> |
| | class="editing" |
| | id="test" |
| | "\n" |
| | <center> |
| | "\n" |
| | <p> |
| | <#selection-caret> |
| | <br> |
| | "\n" |
| | "\n" |
| |
| After paste (this should be identical to before cut): |
| | "\n" |
| | <div> |
| | class="editing" |
| | id="test" |
| | "\n" |
| | <center> |
| | "\n" |
| | <p> |
| | "This is an " |
| | <b> |
| | "interactive" |
| | " " |
| | "documentation site, so please help out by posting any useful information that you've had to search out." |
| | <br> |
| | "(Adding to this" |
| | " " |
| | <a> |
| | href="db.cgi?Wiki_Is_So_Easy" |
| | "wiki is so easy" |
| | ", you can't screw it up). See" |
| | " " |
| | <a> |
| | href="db.cgi?Wiki_Reference" |
| | "Wiki Reference" |
| | " " |
| | "for text formatting syntax." |
| | <br> |
| | "Info for setting up your own wiki is at" |
| | " " |
| | <a> |
| | href="db.cgi?About_Howto.Apple.Com" |
| | "about howto.apple.com" |
| | "." |
| | <br> |
| | "Check out a cool wiki editor application that helps in wiki generation:" |
| | " " |
| | <a> |
| | href="db.cgi?Wikinator" |
| | "Wikinator" |
| | <p> |
| | "Start browsing the topics below, or use the search field at the bottom of every page.<#selection-caret>" |
| | "\n" |
| | "\n" |