Answer the question
In order to leave comments, you need to log in
ckeditor editor and elfinder 1.x file storage on another domain
Tell me how to implement such a thing?
I want to physically separate the file storage and the main site so that it is hosted in different places.
In the ckeditor settings, I connect elfinder as usual:
filebrowserBrowseUrl : 'http://files.domain.ru/elfinder/elfinder.php'
$().ready(function() {
var funcNum = window.location.search.replace(/^.*CKEditorFuncNum=(\d+).*$/, "$1");
var langCode = window.location.search.replace(/^.*langCode=([a-z]{2}).*$/, "$1");
$('#finder').elfinder({
url : 'connectors/php/connector.php',
lang : langCode,
places: "", // отключить избранное
editorCallback : function(url) {
window.opener.CKEDITOR.tools.callFunction(funcNum, url);
window.close();
}
})
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question