Opened 13 years ago

Closed 13 years ago

#7758 closed Bug (invalid)

imagesPath for templates has always editor path

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

Description

I set a mytemplates.js outside ckeditor and want to set template images in a folder accessible by filebrowser. But image path has always editor path in front.
As a workaround I set

imagesPath : '../../../content/media/image/editortemplates/'

and get the image. With it output is:
http://mydomain/admin/ckeditor/editor/../../../content/media/image/editortemplates/template3.gif

Change History (1)

comment:1 Changed 13 years ago by Frederico Caldeira Knabben

Resolution: invalid
Status: newclosed

Paths will be always relative to the editor directory.

You should use an absolution URL (starting with slash) in this case, like "/content/media/image/editortemplates/".

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