To reproduce: 0. Launch Blot_editableDiv_showSource, my modified version of "Blot" available from <http://dan.karelia.com/webkit/Blot_editableDiv_showSource.zip> with DYLD_FRAMEWORK_PATH pointing to TOT. (I'm using r18941) 1. Copy out some plain text (not attributed text) from a plain text editor with several lines, e.g. this is line one this is line two this is line three 2. Click in the top panel 3. Paste Results: The HTML of the editable div contains: <div>this is line one</div><div>this is line two</div><div>this is line three</div> Expected: I need to have the ability to indicate whether the text is to be marked up like that, or to be lines separated by <br />, or enclosed in <p> tags -- We need to have some way to have that option in the HTML that is generated.
Dan, we recently exposed -[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources]. You could override paste and do your own fragment creation in the plain text case.
Now we have DefaultParagraphSeparator command which lets you switch the default block element between div and p.