Re: [w3c/editing] Define behavior of pressing enter in inline editing host (Issue #430)

> I think it has to do with inserting a different element to represent the new line/paragraph depending on what the parent element is, to not end up with `<span><div></div><span>` for example.

I intended so. 

I think `insertParagraph` should not insert a default paragraph separator `<div>` or `<p>`, if there is no proper editable ancestor at insertion point. In the case, the command should work as `insertLineBreak` (it seems that `\n` should be inserted if it's preserved by `white-space`, other wise, `<br>`).

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/issues/430#issuecomment-1554043371
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/editing/issues/430/1554043371@github.com>

Received on Friday, 19 May 2023 05:47:55 UTC