Opened 15 years ago
Closed 13 years ago
#5721 closed Bug (expired)
customConfig doesn't work with non-relative path
Reported by: | Greg | 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 15 years ago by
Keywords: | WorksForMe added |
---|
comment:2 Changed 13 years ago by
Resolution: | → expired |
---|---|
Status: | pending → closed |
Closing the ticket as expired.
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).