[Webkit-unassigned] [Bug 9575] replaceSelectionWithMarkupString merges blockquotes

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Mon Jun 26 17:13:08 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=9575





------- Comment #1 from justin.garcia at apple.com  2006-06-26 17:13 PDT -------
The fact that we force the first bit of content being inserted onto the same
line as the content before the selection being pasted into is not a bug.  To
get that behavior we must strip blocks surrounding the first paragraph of the
incoming fragment.  We could strip blocks surrounding the content before the
selection being pasted into but that could produce bad visual results: you'd
paste something into a bordered block and the border would go away.  

It would be nice if there was a way to override this behavior though.  To work
around this, you could put an interchange newline at the beginning of the
markup when the selection being pasted into doesn't start at the start of a
paragraph

<br class="Apple-interchange-newline">
<blockquote>Text</blockquote>
...

You'll also want an interchange newline at the end of the fragment if the
selection being pasted into doesn't end at the end of a paragraph.


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list