- From: Masayuki Nakano <notifications@github.com>
- Date: Thu, 18 May 2023 22:47:49 -0700
- To: w3c/editing <editing@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 19 May 2023 05:47:55 UTC
> 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