Opened 10 years ago
Last modified 10 years ago
#14502 confirmed Bug
baseHref setting not used for loading resources in Сombo panels
| Reported by: | macik | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | General | Version: | 4.0 |
| Keywords: | Cc: |
Description
Steps to reproduce
- set
CKEDITOR.config.baseHrefto root ofwww.site.com(for example) - set
CKEDITOR.config.contentsCssto point to some subfolder css —theme/test.css - open editor from some subfolder page — www.site.com/pages/myeditor.html
Expected result
- Expect <base href="https://www.site.com/"> to be added in main iframe of editor
- Expect <base href="https://www.site.com/"> to addition iframes created for Combo boxes like «Styles» and «Formats» select
Actual result
- it's OK — we get base for main editor iframe
- it's fails as Combobox iframes have not base href, and style files paths expand to
pages/theme/test.cssand not to roottheme/test.cssso it's not found with 404 error.
Other details (browser, OS, CKEditor version, installed plugins)
This bug is located in Chrome browser (latest) on Windows7x64.
This bug is not revealed in Firefox as it treats all iframe loaded resources base relative to site root.
Change History (1)
comment:1 Changed 10 years ago by
| Keywords: | basehref css loading removed |
|---|---|
| Status: | new → confirmed |
| Version: | 4.5.6 → 4.0 |

Problem can be reproduced at least from CKEditor 4.0.
To reproduce, put attached file in samples folder and create assets folder in ROOT folder of your server.
Inside that assets folder create test.css and sample.jpg files.
Editor loads fine, but if you open styles dropdown, the 404 is thrown.