[CONTEDIT-102] Article editor UI cannot handle FieldSetBlockDefinition with RichTextFieldDefinition Created: 21/Apr/17  Updated: 11/Jul/17  Resolved: 30/May/17

Status: Closed
Project: Content Editor
Component/s: None
Affects Version/s: 1.0.3
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Christoph Meier Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

article-editor-1.0.3-SNAPSHOT-tomcat-bundle.zip
(taken from afp fileserver)


Attachments: PNG File richquote-after-restart.png     PNG File richquote.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:

 Description   

Article editor UI cannot handle FieldSetBlockDefinition with RichTextFieldDefinition

According to the definition class FieldSetBlockDefinition, it should be possible to add a RichTextFieldDefinition to the fields list.
However, the article editor fails to properly "start" the richText editor, the value of the field cannot be changed, if you add a block with a RichTextFieldDefinition.

example block definition.

class: info.magnolia.editor.content.block.stock.FieldSetBlockDefinition
templateId: block-examples:blocks/richquote
fields:
  quotation:
    class: info.magnolia.ui.form.field.definition.RichTextFieldDefinition
  citedPerson:
    class: info.magnolia.ui.form.field.definition.TextFieldDefinition

The light-module block-examples (on git) contains such a block for testing reasons (blockname="richquote").

See screenshot about how the block with the richtextfield looks like.

Interestingly, after restarting the bundle, the Article editor shows the richtextfield appropriately and the field is editable. But if you then add another block of this type, the 2nd won't work.
(shrug)



 Comments   
Comment by Philip Mundt [ 30/May/17 ]

RichTextField shouldn't be embedded in yet another field. Content-editor relies on authors using the given text block.

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