Opened 8 years ago

Last modified 8 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:


Steps to reproduce

  1. set CKEDITOR.config.baseHrefto root of (for example)
  2. set CKEDITOR.config.contentsCss to point to some subfolder css — theme/test.css
  3. open editor from some subfolder page —

Expected result

  1. Expect <base href=""> to be added in main iframe of editor
  2. Expect <base href=""> to addition iframes created for Combo boxes like «Styles» and «Formats» select

Actual result

  1. it's OK — we get base for main editor iframe
  2. it's fails as Combobox iframes have not base href, and style files paths expand to pages/theme/test.css and not to root theme/test.css so 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 8 years ago by Jakub Ś

Keywords: basehref css loading removed
Status: newconfirmed

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.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy