ckeditor4 icon indicating copy to clipboard operation
ckeditor4 copied to clipboard

Safari ignores nbsp in visual mode

Open biomancer opened this issue 9 years ago • 4 comments

Are you reporting a feature or a bug?

Bug

Provide detailed reproduction steps (if any)

  1. Open latest demo ( http://nightly.ckeditor.com/17-07-28-06-04/standard/samples/ )
  2. Use   in source mode You can use source like that:
<p>Word and&nbsp;word and&nbsp;word and&nbsp;word and&nbsp;word and&nbsp;word and&nbsp;word and&nbsp;word and&nbsp;word and&nbsp;word</p>

<p>Word&nbsp;and word&nbsp;and word&nbsp;and word&nbsp;and word&nbsp;and word&nbsp;and word&nbsp;and word&nbsp;and word&nbsp;and word</p>
  1. Switch to visual mode
  2. Resize browser window so that lines begin to wrap

Expected result

Browser should respect non-breaking spaces and word wrapping should work differently on first and second paragraph, like that: (chrome 60)

image

Actual result

Safari does not respect non-breaking spaces and result looks like that:

image

Other details

  • Browser: Safari 10.1.2 (10603.3.8)
  • OS: OS X 10.10.5

and

  • Browser: Safari 9.0.2 (11601.3.9)

  • OS: OS X 10.11.2

  • CKEditor version: 4.6.1, 4.7.1, current nightly demo (17-07-28-06-04)

biomancer avatar Jul 28 '17 15:07 biomancer

I was able to confirm it. Here works fine on Safari: https://jsfiddle.net/e46x7of9/1/ Problem seems to be related to editor.

msamsel avatar Aug 01 '17 08:08 msamsel

For me https://jsfiddle.net/e46x7of9/1/ Or my more clearly visible https://jsfiddle.net/w0qcLprg/ Does not work in Safari version 14.0 (15610.1.28.1.9, 15610)

So I would say, it is browser's problem. At least now. But I don't know, how and where it can be reported.

hamusi avatar Oct 13 '20 11:10 hamusi

Hi @hamusi, thank you for reaching us and providing the demos - the fact that issue is reproducible in the basic contenteditable element shows that it's indeed a browser problem, not editor.

As for the further steps - there is Safari issue tracker. Could you report an issue there and post the link to it here so that we could track it?

As it turned out to be the browser issue, I'm closing this ticket.

Dumluregn avatar Oct 13 '20 13:10 Dumluregn

I'll try to. Just want mention, that we found, that using style="-webkit-nbsp-mode: normal" helps in safari.

Thanks for pointing me to Bugzilla And I see 2 reports about that already: https://bugs.webkit.org/show_bug.cgi?id=38902 https://bugs.webkit.org/show_bug.cgi?id=12828

hamusi avatar Oct 13 '20 14:10 hamusi