Opened 14 years ago

Closed 11 years ago

#4352 closed Bug (fixed)

Ommiting the traling slash for a custom skin or plugin path results into unwanted behavior

Reported by: Niek Kouwenberg Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: Cc:


I created a custom skin and plugin for the CKEditor. I placed these in a different directory as the CKEditor itself, and therefore I should add the path to the skin and plugin, like so:

// Adding the skin = 'myskin,/js/myskin/';

// Adding the plugin path
CKEDITOR.plugins.addExternal('myplugin', '/js/myplugin/');

The code above works as expected, but when I omit either trailing slash weird things happen.

Looking at the HTTP requests, I can see CKEditor first tries to use the path as specified, and if no skin/plugin is found there, it tries the path with a trailing slash appended. I would expect the following HTTP requests:



This should work fine, the skin and plugin should be found. But then the tricky bit comes into sight; the timestamp request parameter.

All requested URLs get the ?t=97KD parameter appended, to prevent caching. If this would work correct, the HTTP request would look like this:



However, the timestamp will not be appended to the full URL to the Javascript files, but to the path:


For plugins it even gets appended twice, once to the path and once to the filename:


In addition to the problem above, the skin never seems to get the proper timestamp parameter when using a path with a trailing slash (whereas the plugin does):


Change History (2)

comment:1 Changed 13 years ago by Frederico Caldeira Knabben

Milestone: CKEditor 3.x

Milestone CKEditor 3.x deleted

comment:2 Changed 11 years ago by Jakub Ś

Resolution: fixed
Status: newclosed

I have tried both: custom skin and custom plugin in latest CKEditor. I have also added timestamp to the page and configurations mentioned but skin was shown and plugin was loaded.

It looks like issue has expired on trunk.

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