[MGNLUI-6544] When editing source in basic content element "enter" automatically saves without giving new line break Created: 02/Feb/21  Updated: 17/May/21  Resolved: 12/May/21

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2.6, 6.2.8
Fix Version/s: 6.2.9

Type: Bug Priority: Neutral
Reporter: Annick Boehler Assignee: Federico Grilli
Resolution: Fixed Votes: 1
Labels: VN-Testing, maintenance
Remaining Estimate: Not Specified
Time Spent: 0.5h
Original Estimate: Not Specified

Attachments: PNG File image-2021-01-27-09-39-22-211.png     PNG File image-2021-01-27-09-39-27-464.png    
Issue Links:
Problem/Incident
duplicate
is duplicated by MGNLUI-6685 Avoid dialog closing when Enter key i... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Date of First Response:
Sprint: Maintenance 56, Maintenance 57
Story Points: 1

 Description   

When editing source in basic content element (see screenshot) if you try to add a line break by hitting 'enter' key, it doesn't give the new line but automatically saves it. Before it was ok to use and didn't save just after hitting 'save changes'.

Do we know why? Can we fix this? 

Steps to reproduce

  • Make available Source option in CKEditor for text and image mtk component (for example by configuring configJsFile=/.resources/ckeditor/config-default.js
  • Go to Pages, add a new page with the Basic mtk template. Create a new Text and Image component
  • Add some text, click on Source and try to add a line break by hitting 'enter' key

Current result

Dialog is saved and closed.

Expected result

A line break is added to the Rich text field content.

Workaround

N/A

Dev notes

Used to work in 5.7. Not working in any of the 6.2 versions.


Generated at Mon Feb 12 09:37:33 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.