Opened 9 years ago

Last modified 9 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

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

Expected result

  1. Expect <base href="https://www.site.com/"> to be added in main iframe of editor
  2. Expect <base href="https://www.site.com/"> 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 9 years ago by Jakub Ś

Keywords: basehref css loading removed
Status: newconfirmed
Version: 4.5.64.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.

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