开发者

CKEditor Default File Path

Using CKEditor (combined with KCFinder for file upload), when I use the browse button and retrieve my file I get the path:

"/demo/cms/uploads/images/image.jpg"

Which is the path to the image, however if I then move the file around within the editor, the automatically path changes to:

"uploads/images/image.jpg"

Which won't work from where the content is really being pulled. Ideally I would like both paths to be "uploads/images/" but if there is a way to modify either one that will at least make it consistent tha开发者_开发技巧t I can overwrite the path after the content is saved.

Is there a way to modify either of the paths? I haven't been able to find the value in the docs.


Was able to use php and a regex to just strip out any path after the content is saved.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜