[MGNLUI-6685] Avoid dialog closing when Enter key is pressed on creditor while in "Source" mode Created: 04/May/21  Updated: 04/May/21  Resolved: 04/May/21

Status: Closed
Project: Magnolia UI
Component/s: dialogs
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Carlos Cantalapiedra Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
duplicate
duplicates MGNLUI-6544 When editing source in basic content ... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)

 Description   

Steps to reproduce

  1.  Set to true the "Source" option for the RichText on the config-magnolia.js file
  2.  Modify a component (e.g, TextandImage) for use as configJsFile the /.resources/ckeditor/config-magnolia.js file
  3. Create the component, Use the Source option and , on the textarea, press Enter key
  4. Check the dialog is closed

Expected results

Pressing the Enter key doesn't close the dialog

Actual results

Pressing the Enter key closes the dialog

Workaround

N/A

Development notes

even trying to override the onkeypress function for this textarea, the dialog still closes



 Comments   
Comment by Carlos Cantalapiedra [ 04/May/21 ]

Duplicate of MGNLUI-6544

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