GetSimple Support Forum
Drag and Drop Images - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: Drag and Drop Images (/showthread.php?tid=8744)



Drag and Drop Images - sidotij - 2016-09-24

Evening...

I've been looking for a replacement for Nucleus CMS for some time and I came across this and it looked perfect.

Question tho
In the GetSimple demo site I was able to drag and drop images into the page editor

Is there something I need to activate to make that happen on a clean install?
I did install the tinyMCE editor and it worked but I think I'd like to use the default editor

Thanks
John


RE: Drag and Drop Images - shawn_a - 2016-09-24

I have no idea how you could do that since there is no support for it, unless your browser is doing it somehow.

It looks like browser to browser drag and drop is implemented by your browser, for example chrome embeds the image into the content. File system drag and drop will be available in 3.4.

Drag and drop / upload directly in the editor would be a cool feature.


RE: Drag and Drop Images - shawn_a - 2016-09-24

It looks like the ckeditor supports this though

http://docs.ckeditor.com/#!/guide/dev_drop_paste

http://sdk.ckeditor.com/samples/fileupload.html#uploading-dropped-and-pasted-images

We can integrate it fairly easily, now that we are on the latest cke.


RE: Drag and Drop Images - shawn_a - 2016-09-25

https://github.com/GetSimpleCMS/GetSimpleCMS/issues/1192


RE: Drag and Drop Images - sidotij - 2016-09-26

what's odd then is that is works on the demo available here in firefox but not in my test install:
http://www.opensourcecms.com/demo/2/269/GetSimple+CMS

I have to say tho that so far I am loving this as a replacement


RE: Drag and Drop Images - shawn_a - 2016-09-26

it could be a cross domain restriction in your test


RE: Drag and Drop Images - sidotij - 2016-09-26

I wouldn't even know how to start tracing that down...

TinyMCE seems to have that feature enabled on my test site


RE: Drag and Drop Images - sidotij - 2016-09-30

I've been picking at this for a couple days now and I can't find where the allow is

I've spent a fair amount of time comparing what I see on the opensourcecms demo page vs what I see on my test site and there's isn't a lot of difference, except for some jquery scripts (opensourcecms is using older versions)

I've eliminated any server or domain restrictions by switching to the tinymce editor where drag and drop is working in firefox

Any direction would be appreciated
The first site I'm setting up is for a not-for-profit disabled swim team and I want this to be as user friendly as I can make it for them to use

I did attempt to add uploadimage to the extra plugin settings but there is a better than average chance that I didn't do it right.. still playing with it


Code:
    config.extraPlugins = 'uploadwidget';
 config.extraPlugins = 'uploadimage';
 config.uploadUrl = '/uploader/upload.php';



RE: Drag and Drop Images - shawn_a - 2016-10-03

i have this working, i will post a solution soon, the problem is we use a much different approach to uploading, so there needs to be some customization or a plugin to alter core.


RE: Drag and Drop Images - shawn_a - 2016-10-03

Here is the js code for ckeditor GS upload handlers

https://gist.github.com/tablatronix/faea199d3abacf578d68495f1e02f82d

you can drop this in your config.js

note that the file upload plugin requires the upload widget which also requires 4 other plugins also, so you should probably use the builder to auto add the dependancies when adding this, or make sure to add all the plugins.


RE: Drag and Drop Images - sidotij - 2016-10-03

(2016-10-03, 02:46:39)shawn_a Wrote: Here is the js code for ckeditor GS upload handlers

https://gist.github.com/tablatronix/faea199d3abacf578d68495f1e02f82d

you can drop this in your config.js

note that the file upload plugin requires the upload widget which also requires 4 other plugins also, so you should probably use the builder to auto add the dependancies when adding this, or make sure to add all the plugins.

I'm gonna see what I can do with that...

as far as using the builder?
that's a bit beyond me... I'm an infrastructure guy
I can build servers, networks, firewalls and the like
building an editor? LOL no
Wink


RE: Drag and Drop Images - shawn_a - 2016-10-03

Its on ckeditors website its not hard


RE: Drag and Drop Images - sidotij - 2016-10-03

easy for you maybe... my wife is the one that has to listen to me cuss when I muck it up

and mostly I don't want to be too far out from the released environment
if you know what I mean

John