Opened 5 years ago

Closed 4 years ago

#5721 closed Bug (expired)

customConfig doesn't work with non-relative path

Reported by: x86Daddy Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

Up to CKEditor 3.0.2, I could specify customConfig with a path beginning with a forward slash and it worked. Since CKEditor 3.1 and including nightly 5508, it does not work, but if I use a URL with a relative path (../custom.js) it does work. I've tried absolute paths and full URLs, but only relative paths seem to work now.

Here's code that breaks in 3.1 onward:

  var editor = CKEDITOR.replace( 'HTMLContent', {
	filebrowserUploadUrl : '/dev/myapp/cmswork.nsf/CKAddFile/0E18FDF48AF4728986256FA50060876F?SaveDocument',
	customConfig : 'http://myserver.com/dev/myapp/cmswork.nsf/CKmyappconfig.js' } );

This too breaks from 3.1 onward:

  var editor = CKEDITOR.replace( 'HTMLContent', {
	filebrowserUploadUrl : '/dev/myapp/cmswork.nsf/CKAddFile/0E18FDF48AF4728986256FA50060876F?SaveDocument',
	customConfig : '/dev/myapp/cmswork.nsf/CKmyappconfig.js' } );

This code works, but requires me to specify a location that is unreliable:

  var editor = CKEDITOR.replace( 'HTMLContent', {
	filebrowserUploadUrl : '/dev/myapp/cmswork.nsf/CKAddFile/0E18FDF48AF4728986256FA50060876F?SaveDocument',
	customConfig : '../CKmyappconfig.js' } );

Change History (2)

comment:1 Changed 5 years ago by fredck

  • Keywords WorksForMe added

It works for me with both CKEditor 3.1 and the current SVN trunk.

Could you try checking the net panel on Firebug, to see if the provided URL is loading something unexpected (potentially returning a 404 error).

comment:2 Changed 4 years ago by j.swiderski

  • Resolution set to expired
  • Status changed from pending to closed

Closing the ticket as expired.

Note: See TracTickets for help on using tickets.
© 2003 – 2015 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy