[MGNLUI-287] Rich Text editor fields are not displayed on forms Created: 30/Nov/12  Updated: 11/Feb/13  Resolved: 07/Dec/12

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

Type: Bug Priority: Blocker
Reporter: Christopher Zimmermann Assignee: Samuli Penttilä
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
is causing MGNLUI-401 Rich-text field should use absolute p... 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)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

This seems to be a problem with the relative pathto the plugin.js file.

There is a Javascript Error:
Timestamp: 11/29/12 11:59:13 AM
Error: uncaught exception: [CKEDITOR.resourceManager.load] Resource name "magnolialink" was not found at "/VAADIN/js/magnolialink/plugin.js?t=C9A85WF".

Samuli asked me to try changing this and it fixed it.
If you go to RichTextFieldBuilder line 119 and replace "/VAADIN/js/magnolialink/" with "../../../js/magnolialink/", would it work better?
Apparently I cant assume that /VAADIN folder exist in root



 Comments   
Comment by Mikaël Geljić [ 30/Nov/12 ]

Component#getApplication().getContext().getBaseDirectory() might help?

Comment by Samuli Penttilä [ 07/Dec/12 ]

Fixed constant value

Comment by Tobias Mattsson [ 11/Dec/12 ]

While this works a better solution that works with any path would use an absolute URL with the context path taken into consideration.

Generated at Mon Feb 12 08:35:24 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.