[PAGES-140] br tags inserted into title during rename (on pressing return) Created: 21/Jun/17  Updated: 25/Oct/23

Status: Open
Project: Magnolia pages module
Component/s: None
Affects Version/s: 5.5
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Zachary Summers Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: ux
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

multiple machines, multiple magnolia instances


Attachments: PNG File Screen Shot 2017-06-20 at 2.42.22 PM.png     PNG File Screen Shot 2017-06-20 at 2.42.35 PM.png    
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)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Team: AuthorX

 Description   

When editing the page title in a multi-line text dialog, pressing return will insert a break character. When saved, this is translated into a <br/> tag. This seems like good behavior for multi-line text dialogs for the body section, but isn't great in the title or meta attributes.

To reproduce:

  1. log into magnolia author.
  2. add a new page, use any name, title, and template.
  3. save the page.
  4. highlight the page from tree view, and select rename from the right side interface.
  5. The Title section of the dialog should be multiline.
  6. select the Title section, and press return. A white space character should show up.
  7. save the edit.
  8. view the page outside of the magnolia frame.
  9. The title bar will contain <br/> tags. viewing the page's source will show the tags.

This issue also shows up on other multi-line dialog editors. When allowing clients to generate and maintain pages, they often hit enter and don't notice the whitespace character added.

When editing the title through edit page properties, as a single line dialog, the return characters are removed onBlur of the field.



 Comments   
Comment by Richard Gange [ 11/Jul/17 ]

The rows property should be removed /modules/pages/dialogs/editPage/form/tabs/tabPage/fields/title@rows

Generated at Mon Feb 12 06:16:02 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.