-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Elfinder does not open #3
Comments
I solved the problem, only that when I double-click on an image, is entered in the editor. I have the same error of this person. You can help us find a solution? |
@Ande1232 let me know the browser console log for the error |
@Ande1232, can you post you solution so that others with that issue can use that.. Like me :) |
@moxley5658 can you share your code ? so i can inspect it ? |
Sure, and thanks - I made the above txt files for ease of view. If there
is a better way of sharing, please let me know.
The Summernote window opens with the File Manager Button
But it throws the bellow error when pressed.
Error of:
TypeError:
e(this).addClass("dialogelfinder").css("position","absolute").hide().appendT
o("body").draggable is not a function. (In
'e(this).addClass("dialogelfinder").css("position","absolute").hide().append
To("body").draggable({handle:".dialogelfinder-drag",containment:"window",sto
p:function(){r.trigger("resize"),o.trigger("resize")}})',
'e(this).addClass("dialogelfinder").css("position","absolute").hide().append
To("body").draggable' is undefined)
I am using:
elFinder Version 2.1.28
jQuery v2.1.1
Bootstrap v3.3.7
Summernote v0.8.8
Regards,
Michael Moxley
Storm Group Enterprise
www.stormbuilt.com
(610) 742-9474
From: Puguh Wijayanto <notifications@github.com>
Reply-To: semplon/summernote-ext-elfinder
<reply+01e8a3d8371103e9aacf520ba3d06a72908f55b1ac9c2bdf92cf0000000115df0e819
2a169ce0b6e2155@reply.github.com>
Date: Sunday, September 24, 2017 at 2:11 AM
To: semplon/summernote-ext-elfinder
<summernote-ext-elfinder@noreply.github.com>
Cc: Michael Moxley <mmoxley@stormbuilt.com>, Mention
<mention@noreply.github.com>
Subject: Re: [semplon/summernote-ext-elfinder] Elfinder does not open (#3)
@moxley5658 <https://github.com/moxley5658> can you share your code ? so i
can inspect it ?
�
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3 (comment)
1689812> , or mute the thread
<https://github.com/notifications/unsubscribe-auth/Aeij2DcGntw-jquhZjvgUTHqL
HYA_lmwks5slfKBgaJpZM4K8uD9> .
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4b
b","name":"GitHub"},"entity":{"external_key":"github/semplon/summernote-ext-
elfinder","title":"semplon/summernote-ext-elfinder","subtitle":"GitHub
repository","main_image_url":"https://cloud.githubusercontent.com/assets/143
418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"h
ttps://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6
-9aed-b52498112777.png","action":{"name":"Open in
GitHub","url":"https://github.com/semplon/summernote-ext-elfinder"}},"update
s":{"snippets":[{"icon":"PERSON","message":"@semplon in #3: @moxley5658 can
you share your code ? so i can inspect it ?"}],"action":{"name":"View
Issue","url":"#3 (comment)
suecomment-331689812"}}}
<script src="js/plugins/summernote/summernote.min.js"></script>
<script src="js/elfinder/elfinder.min.js"></script>
<script src="js/plugins/summernote/summernote-ext-elfinder.js"></script>
<script type="text/javascript">
$(function() {
$('.summernote').summernote({
height: 200,
tabsize: 2,
toolbar: [
['style', ['bold', 'italic', 'underline', 'clear']],
['insert', ['elfinder']]
]
});
});
function elfinderDialog() {
var fm = $('<div/>').dialogelfinder({
url : 'js/plugins/summernote/connector.minimal.php', // change with the url of your connector
lang : 'en',
width : 840,
height: 450,
destroyOnClose : true,
getFileCallback : function(files, fm) {
console.log(files);
$('.editor').summernote('editor.insertImage', files.url);
},
commandsOptions : {
getfile : {
oncomplete : 'close',
folders : false
}
}
}).dialogelfinder('instance');
}
</script>
error_reporting(0); // Set E_ALL for debuging
elFinder::$netDrivers['ftp'] = 'FTP';
function access($attr, $path, $data, $volume, $isDir, $relpath) {
return basename($path)[0] === '.' // if file/folder begins with '.' (dot) with out volume root
&& strlen($relpath) !== 1
? !($attr == 'read' || $attr == 'write') // set read+write to false, other (locked+hidden) set to true
: null; // else elFinder decide it itself
}
$opts = array(
// 'debug' => true,
'roots' => array(
// Items volume
array(
'driver' => 'LocalFileSystem', // driver for accessing file system (REQUIRED)
'path' => '../../../../images/upload/', // path to files (REQUIRED)
'URL' => dirname($_SERVER['PHP_SELF']) . '../../../../images/files', // URL to files (REQUIRED)
'trashHash' => 't1_Lw', // elFinder's hash of trash folder
'uploadDeny' => array('all'), // All Mimetypes not allowed to upload
'uploadAllow' => array('image', 'text/plain'),// Mimetype `image` and `text/plain` allowed to upload
'uploadOrder' => array('deny', 'allow'), // allowed Mimetype `image` and `text/plain` only
'accessControl' => 'access' // disable and hide dot starting files (OPTIONAL)
),
// Trash volume
array(
'id' => '1',
'driver' => 'Trash',
'path' => '../../../../images/upload/.trash/',
'tmbURL' => dirname($_SERVER['PHP_SELF']) . '../../../../images/.trash/.tmb/',
'uploadDeny' => array('all'), // Recomend the same settings as the original volume that uses the trash
'uploadAllow' => array('image', 'text/plain'),// Same as above
'uploadOrder' => array('deny', 'allow'), // Same as above
'accessControl' => 'access', // Same as above
)
)
);
$connector = new elFinderConnector(new elFinder($opts));
$connector->run();
|
You asked me via email, This is what I'm pulling in to make things work.
The script second from bottom contains the scripting needed to tie Summernote to elFinder.
|
@moxley5658 did you had load the jquery-ui ? jquery-ui must be loaded to make this work |
You also need to watch the order of loading the scripts in the document. |
When I try to load that by itself, it times out (too many HTML redirects).
Regards,
Michael Moxley
Storm Group Enterprise
www.stormbuilt.com
(610) 742-9474
From: Puguh Wijayanto <notifications@github.com>
Reply-To: semplon/summernote-ext-elfinder
<reply+01e8a3d81bbc7e4686ead33fcba8e7d401bc7b6d5756a25d92cf0000000115df6e299
2a169ce0b6e2155@reply.github.com>
Date: Sunday, September 24, 2017 at 8:59 AM
To: semplon/summernote-ext-elfinder
<summernote-ext-elfinder@noreply.github.com>
Cc: Michael Moxley <mmoxley@stormbuilt.com>, Mention
<mention@noreply.github.com>
Subject: Re: [semplon/summernote-ext-elfinder] Elfinder does not open (#3)
@moxley5658 <https://github.com/moxley5658> did you had load the jquery-ui
? jquery-ui must be loaded to make this work
�
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3 (comment)
1708496> , or mute the thread
<https://github.com/notifications/unsubscribe-auth/Aeij2GM7ab4WUZ8iGvqXGT4y6
TBv2Y_Qks5sllIpgaJpZM4K8uD9> .
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4b
b","name":"GitHub"},"entity":{"external_key":"github/semplon/summernote-ext-
elfinder","title":"semplon/summernote-ext-elfinder","subtitle":"GitHub
repository","main_image_url":"https://cloud.githubusercontent.com/assets/143
418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"h
ttps://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6
-9aed-b52498112777.png","action":{"name":"Open in
GitHub","url":"https://github.com/semplon/summernote-ext-elfinder"}},"update
s":{"snippets":[{"icon":"PERSON","message":"@semplon in #3: @moxley5658 did
you had load the jquery-ui ? jquery-ui must be loaded to make this
work"}],"action":{"name":"View
Issue","url":"#3 (comment)
suecomment-331708496"}}}
|
Thanks! Ill give that a wing!
Regards,
Michael Moxley
Storm Group Enterprise
www.stormbuilt.com
(610) 742-9474
From: Dennis Suitters <notifications@github.com>
Reply-To: semplon/summernote-ext-elfinder
<reply+01e8a3d811e8a4e3b04f7be51793f26d1c37840cdfa820f292cf0000000115df70849
2a169ce0b6e2155@reply.github.com>
Date: Sunday, September 24, 2017 at 9:09 AM
To: semplon/summernote-ext-elfinder
<summernote-ext-elfinder@noreply.github.com>
Cc: Michael Moxley <mmoxley@stormbuilt.com>, Mention
<mention@noreply.github.com>
Subject: Re: [semplon/summernote-ext-elfinder] Elfinder does not open (#3)
You also need to watch the order of loading the scripts in the document.
�
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3 (comment)
1709078> , or mute the thread
<https://github.com/notifications/unsubscribe-auth/Aeij2N5uK1KAsIREvpeLw_tFd
Ko1kplYks5sllSEgaJpZM4K8uD9> .
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4b
b","name":"GitHub"},"entity":{"external_key":"github/semplon/summernote-ext-
elfinder","title":"semplon/summernote-ext-elfinder","subtitle":"GitHub
repository","main_image_url":"https://cloud.githubusercontent.com/assets/143
418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"h
ttps://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6
-9aed-b52498112777.png","action":{"name":"Open in
GitHub","url":"https://github.com/semplon/summernote-ext-elfinder"}},"update
s":{"snippets":[{"icon":"PERSON","message":"@StudioJunkyard in #3: You also
need to watch the order of loading the scripts in the
document."}],"action":{"name":"View
Issue","url":"#3 (comment)
suecomment-331709078"}}}
|
Ok, we are getting somewhere, now, a new window opens, but it appear there
are no file. There is also an error message that says 'Invalid backend
response.
Data is not JSON."
Regards,
Michael Moxley
Storm Group Enterprise
www.stormbuilt.com
(610) 742-9474
From: Puguh Wijayanto <notifications@github.com>
Reply-To: semplon/summernote-ext-elfinder
<reply+01e8a3d87144028eecc3ce241403ef35ab9936ea77744a4192cf0000000115df7eb49
2a169ce0b6e2155@reply.github.com>
Date: Sunday, September 24, 2017 at 10:09 AM
To: semplon/summernote-ext-elfinder
<summernote-ext-elfinder@noreply.github.com>
Cc: Michael Moxley <mmoxley@stormbuilt.com>, Mention
<mention@noreply.github.com>
Subject: Re: [semplon/summernote-ext-elfinder] Elfinder does not open (#3)
try this
https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js
https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.css
�
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3 (comment)
1712588> , or mute the thread
<https://github.com/notifications/unsubscribe-auth/Aeij2Ml4-Ai_jR06EEkWaC70n
bVdDCHMks5slmK0gaJpZM4K8uD9> .
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4b
b","name":"GitHub"},"entity":{"external_key":"github/semplon/summernote-ext-
elfinder","title":"semplon/summernote-ext-elfinder","subtitle":"GitHub
repository","main_image_url":"https://cloud.githubusercontent.com/assets/143
418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"h
ttps://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6
-9aed-b52498112777.png","action":{"name":"Open in
GitHub","url":"https://github.com/semplon/summernote-ext-elfinder"}},"update
s":{"snippets":[{"icon":"PERSON","message":"@semplon in #3: try
this\r\n\r\nhttps://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui
.min.js\r\nhttps://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.
min.css\r\n\r\n"}],"action":{"name":"View
Issue","url":"#3 (comment)
suecomment-331712588"}}}
|
okay, awsome. now please take a look at this part. this should be the url with http protocol where your connector located. it's usually at the elfinder itself. |
please help me I dont have this file connector.php how can I get it? |
@ngrcode the connector file can be found at your elfinder folder. studio-42:
open this file. rename it or copy it to other file. you can insert this connector to the js code. |
Hi, I have followed the readme file, the "file manager" button appears, but when I click the button, the error from console
This is my source:
http://pastebin.com/MZacyRVk
The text was updated successfully, but these errors were encountered: