- From: Masayuki Nakano <notifications@github.com>
- Date: Thu, 22 Jun 2023 21:38:13 -0700
- To: w3c/editing <editing@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 23 June 2023 04:38:19 UTC
> > Handling steps of `Document.execCommand("insertLineBreak"`) (LF vs `<br>` (Chrome vs. Safari) > > LF seems more useful for plaintext-only. Yeah, if linebreaks are not preserved like `white-space: normal`, should be `<br>`? (I guess yes.) And I wonder, if `contenteditable` value is changed from `""`/`"plaintext-only"` to the other value in a `beforeinput` event handler, how do Chrome/Safari handle it...? Especially when it's switched from `""` to `"plaintext-only"` and the command is not acceptable for the `plaintext-only`, e.g., `bold` command which is available with `Accel`+`B` except in Firefox. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/editing/issues/419#issuecomment-1603669850 You are receiving this because you are subscribed to this thread. Message ID: <w3c/editing/issues/419/1603669850@github.com>
Received on Friday, 23 June 2023 04:38:19 UTC