[MAGNOLIA-1456] Images uploaded with FCKeditor do not show in nested paragraphs Created: 11/Apr/07  Updated: 23/Jan/13  Resolved: 14/Jun/07

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 3.0.2
Fix Version/s: 3.1 M2

Type: Bug Priority: Major
Reporter: zam6ak Assignee: Philipp Bärfuss
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: JPEG File fckeditor-image-path-bug.jpg     Text File patch.txt    
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   

Hi

Intro:
I have a "decorator box" paragraphs that other, standard paragraphs can be embedded into. The purpose of the "decorator box" paragraph is to "wrap" other standard paragraphs with some fancy borders. The idea was taken from 2 Column paragraph in Magnolia Enterprise.

Problem:
1. When I use paragraph that has FCKeditor with image upload feature enabled it works great if that paragraph is a standalone (i.e. not in the nested, decorator box paragraph)
2. However, when I use the same paragraph nested inside of the "decorator box" paragraph, the uploaded image shows in the dialog but not in the content !!! The reason is because the URL for the image is wrong....

image URLs:

case 1 inside of editor (using source view): "/magnolia-cms/www-mydomain-org/demo/pc-ccol/04/content_files/file/www-img-placeholder.jpg"
case 1 from the content (using Firebug inspect): "http://mypc.mydomain.org/magnolia-cms/www-mydomain-org/demo/pc-ccol/04/content_files/file/www-img-placeholder.jpg"

case 2 inside of editor (using source view): "/magnolia-cms/www-mydomain-org/demo/pc-ccol/03/pc-decobox/0/content_files/file/www-img-placeholder.jpg"
case 2 from the content (using Firebug inspect): "03/pc-decobox/0/content_files/file/www-img-placeholder.jpg"

pc-ccol = Paragraph Collection Center Column
pc-decobox = Paragraph Collection Decorator Box

As you can see Magnolia does not properly render the image URL for the image uploaded via FCKeditor while in nested paragraph....Case 2 content URL is incomplete



 Comments   
Comment by Philipp Bracher [ 14/Jun/07 ]

Should work now. Please test it.

Comment by Philipp Bracher [ 12/Oct/07 ]

Rather ugly patch for 3.0 but working

Should I commit that to 3.0 branch?

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