Sitecore / Habitat

Sitecore Modular Architecture Example
Other
413 stars 397 forks source link

Field Editor ­ in Single line Text fields are dissapearing on save #478

Closed squadwuschel closed 5 years ago

squadwuschel commented 5 years ago

Describe the bug When I use the Field Editor for single line Text fields and when I edit this fields and when I am using shy inside my name like

  ­ => in the text below only "shy"

grafik

The fields in the page are not getting updated, mostly I need to save the hole page. but after saving the page - the shy is gone not shown on the page

grafik

when I then save the page the shy is gone and overwritten.

grafik

as you can see on the side its not rendered any more.

A clear and concise description of what the bug is. When you add e.g. shy to a single line Text field and you edit this field with the Field Editor and after accepting the change and saving the page the ­ is gone.

Sitecore Version 9.0 Update 2

To Reproduce Steps to reproduce the behavior:

Expected behavior

Additional context I am not shure if this is a bug from sitecore itself or a problem with the code from Habitat. If this is a sitecore problem. How can I address it without getting told from sitecore that they are not supporting habitat issues?

nickwesselman commented 5 years ago

Hi @squadwuschel,

Offhand this does not look like an issue with Habitat. AFAIK you've always had to do a "save" after editing something with a Field Editor, though I agree having an auto-save would be better behavior by the EE. Single-line text fields don't support HTML / HTML entities either AFAIK, have you tried putting the character directly in the field? It should be encoded on output.

You could test these behaviors pretty easily on a vanilla/empty instance by adding a Field Editor to the out-of-the-box sample renderings. If you see something different than Habitat, I'd be very surprised but interested in knowing. If, as I suspect, you see the same behavior, you can use that as your source for your support ticket.

Please reopen if needed.

-Nick