silverstripe / silverstripe-cms

Silverstripe CMS - this is a module for Silverstripe Framework rather than a standalone app. Use https://github.com/silverstripe/silverstripe-installer/ to set this up.
http://silverstripe.org/
BSD 3-Clause "New" or "Revised" License
516 stars 333 forks source link

"Insert external link" changes selected text to 'undefined' in IE11 and Edge 18 #2512

Closed michalkleiner closed 4 years ago

michalkleiner commented 4 years ago

Adding a link to a selected text via the WYSIWYG editor in Edge ~19~ 18 changes the selected text to 'undefined'.

Steps to reproduce:

  1. In Edge ~19~ 18
  2. Open SS 4.4 demo at https://demo.silverstripe.org
  3. Create a generic page
  4. Type some text into the WYSIWYG
  5. Select the text
  6. Insert external link via the chain link icon (SS plugin)
  7. Observe new link created with the text changed to 'undefined'
Screen Shot 2020-01-13 at 9 16 00 PM

IE11 recording of this issue

Pull Requests

brynwhyman commented 4 years ago

I don't think there is a stable version of Edge 19? (Happy to be corrected though!) Are you perhaps running an insider preview or the new Chromium-Edge beta?

lerni commented 4 years ago

As it looks on caniuse.com after 18, 76 'll follow (15th of april january AFAIK) and this version 'll be chromium based.

michalkleiner commented 4 years ago

Apologies, Edge 18 as in the title

michalkleiner commented 4 years ago

Looking at changes related to the 'Insert link' feature since 4.4.3, this is the only relevant imho, though haven't tested whether reverting it fixes the issue.

https://github.com/silverstripe/silverstripe-cms/commit/8ba444332adc11bd1d4453e6b966ef737199d20b#diff-50c48f8411e61104e6fffa513bcf2bff

intotheweb101 commented 4 years ago

@michalkleiner have you found a solution to this issue ? We have just found this issue in one of our new sites, and the client uses IE11 as the main browser

Thanks

axllent commented 4 years ago

We're also experiencing this same issue for a CWP client who use Edge (18) internally.

michalkleiner commented 4 years ago

No, haven't been looking into it, sorry @intotheweb101. Same as for @axllent, it's a CWP client of ours. Perhaps it could be resolved through the shared pool of hours, but someone would need to raise it there.

Cheddam commented 4 years ago

The related PR has been merged, so this fix will go into CMS Recipe 4.5.3 and 4.6.1 (missed the boat on 4.6.0 unfortunately).