[MGNLUI-5912] RichTextField - contentsCss in configJsFile not working Created: 02/Jun/20 Updated: 27/Jul/20 Resolved: 19/Jun/20 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | None |
| Affects Version/s: | 6.2.1 |
| Fix Version/s: | 6.2.2 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Viet Nguyen | Assignee: | Federico Grilli |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | ckeditor, maintenance | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | 1h 59m | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||
| 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
|
||||||||||||||||||||
| Sprint: | Maintenance 11, Maintenance 12 | ||||||||||||||||||||
| Story Points: | 0 | ||||||||||||||||||||
| Description |
|
When using the following configuration for a Rich text field in magnolia 6.2 the "contentCss" However when using the same configuration in magnolia 5.7.5 it is working as expected.
CKEDITOR.editorConfig = function (config) {
//Toolbar Layout
var toolbar = [
{name: "clipboard", items: ["Cut", "Copy", "Paste", "PasteText", "PasteFromWord"]},
];
config.toolbar = toolbar;
//CSS classes
config.contentsCss = ['https://frontend.live/unionInvestment-website-frontend/develop-v4/resources/css/styles.all.min.css', 'https://frontend.live/unionInvestment-website-frontend/develop-v4/resources/css/styles.all2.min.css'];
};
there are no frontend, nor any backend errors logged. In Magnolia 6.2.1 I see the following ckeditor in the dialog. This dialog shows that the toolbar configuration is working: When looking at the html code, the configured resources (contentCss) are missing in the head of the iframe: Also when using the console to display the CKEditor variables the two entries "
Now when we look at magnolia 5.7.5 we see that it was working in this magnolia version: You can see that both css files are included in the head within the iframe: and here the console output of the variable: |
| Comments |
| Comment by Viet Nguyen [ 09/Jun/20 ] |
|
Customer after investigated the different options I have to implement this:
Is there another elegant option to solve this problem? |