Marty Walker Posted August 25, 2011 Share Posted August 25, 2011 Hi, I'm having an issue inserting images from other pages. I'm inserting into a wysiwyg field from another page that has an image field populated. I can navigate and see the image but when I insert it it disappears. Not sure if this an expected behaviour or a bug. Regards Martin Link to comment Share on other sites More sharing options...
ryan Posted August 25, 2011 Share Posted August 25, 2011 That's not the intended behavior. Some of my code is still adjusting to jQuery 1.6. Thanks for finding it. Fixed in the latest commit. Link to comment Share on other sites More sharing options...
Marty Walker Posted August 26, 2011 Author Share Posted August 26, 2011 Thanks Ryan, I downloaded the most recent build and I'm still getting this behaviour. If I view the html in the editor I see: <img src="undefined" width="209" height="234" /> I'm running Safari 5.0.5 / OS X 10.6.7 Regards Martin Link to comment Share on other sites More sharing options...
ryan Posted August 26, 2011 Share Posted August 26, 2011 Martin, I think Safari may not have not loaded the new JS. You might have to clear your cache and/or hit reload on the page once or twice. Sometimes Safari can be a little tricky with cache. Also, I'm assuming we're talking about PW 2.1 (not PW 2.0), but let me know if I'm incorrect. Link to comment Share on other sites More sharing options...
lpa Posted March 4, 2012 Share Posted March 4, 2012 Hi, I have the same problem with Safari 5.1.2 and OS X 1.6.8. The size of the image is 0 x 0 and it is not shown in the window: Link to comment Share on other sites More sharing options...
ryan Posted March 6, 2012 Share Posted March 6, 2012 Lpa, I'm assuming you are running the latest PW (2.2.0.1), but let me know if not. I'm running Safari 5.1.2 as well, on 10.6.8. But I can't duplicate this. I'm always suspicious of cache issues with Safari. Is anyone else able to duplicate? Link to comment Share on other sites More sharing options...
lpa Posted March 8, 2012 Share Posted March 8, 2012 I am actually using 2.2.0. What is the best way to update: "git pull https://github.com/ryancramerdesign/ProcessWire.git" or something else? Is the drag and drop of images supposed to work with Safari? Link to comment Share on other sites More sharing options...
ryan Posted March 9, 2012 Share Posted March 9, 2012 I am actually using 2.2.0. What is the best way to update: "git pull https://github.com/ryancramerdesign/ProcessWire.git" or something else? You can do that, or you can download the ZIP and replace the /wire/ directory from your installation with the /wire/ directory from the ZIP. When not using git, I usually rename the existing /wire/ dir in my site to /wire.old/ temporarily, just in case I need to revert. Is the drag and drop of images supposed to work with Safari? Yes, everything should work in Safari. Though I would use Chrome over Safari to avoid the continuous beachballing on every site I visit with it (or maybe that's just my computer). Link to comment Share on other sites More sharing options...
lpa Posted March 9, 2012 Share Posted March 9, 2012 Well, now I have updated to 2.2.0.1 and now I can select the picture from another page. But I still can't drag and drop the pictures with Safari. I don't even see the text "drag and drop files in here" in the image field. What should I try next? Link to comment Share on other sites More sharing options...
apeisa Posted March 9, 2012 Share Posted March 9, 2012 lpa: does this work in your Safari: http://robertnyman.com/html5/fileapi-upload/fileapi-upload.html Link to comment Share on other sites More sharing options...
lpa Posted March 10, 2012 Share Posted March 10, 2012 lpa: does this work in your Safari: http://robertnyman.c...api-upload.html It works, but doesn't show the picture. As the page says: "NOTE: Safari seems to fail to read out any information about the actual files." Link to comment Share on other sites More sharing options...
ryan Posted March 12, 2012 Share Posted March 12, 2012 Actually this sounds familiar now, I think I remember that Safari for some reason does not support drag-drop file uploads. That was awhile ago that I remember talking about this before, and figured they would have fixed it by now. It seems like Apple is not giving much love to Safari lately. Link to comment Share on other sites More sharing options...
apeisa Posted March 12, 2012 Share Posted March 12, 2012 I just checked what the missing feature is, and it seems that we require filereader API: http://caniuse.com/#feat=filereader (not supported in Safari 5.0, 5.1 and support unknown for 6.0). BTW: IE 10 will have it, and even Opera mobile and Android browser can handle it... I also noticed that we don't actually check for drag and drop support. This fails in Opera 11, since it supports everything else but not drag & drop. It seems that feature check for that one isn't so simple than with other features, so if Opera 11 is only problem, then we might live with that. Link to comment Share on other sites More sharing options...
lpa Posted March 12, 2012 Share Posted March 12, 2012 I just checked what the missing feature is, and it seems that we require filereader API: http://caniuse.com/#feat=filereader (not supported in Safari 5.0, 5.1 and support unknown for 6.0). BTW: IE 10 will have it, and even Opera mobile and Android browser can handle it... I found this: http://www.deadmarshes.com/Blog/20110413023355.html which tells me that you might fix the drag and drop to work even with Safari on Mac? Link to comment Share on other sites More sharing options...
Soma Posted March 12, 2012 Share Posted March 12, 2012 Lpa, I'm assuming you are running the latest PW (2.2.0.1), but let me know if not. I'm running Safari 5.1.2 as well, on 10.6.8. But I can't duplicate this. I'm always suspicious of cache issues with Safari. Is anyone else able to duplicate? No, it works like a charm here safari 5.1.2 osx 10.6.8. I can see the image select resize and insert it. Link to comment Share on other sites More sharing options...
lpa Posted March 12, 2012 Share Posted March 12, 2012 No, it works like a charm here safari 5.1.2 osx 10.6.8. I can see the image select resize and insert it. I can also insert pictures from other pages without problems with the default admin templates. I was using the Futura admin templates when I had problems. But Soma, can you drag and drop images with Safari? That is another question we have been discussing here. Link to comment Share on other sites More sharing options...
Soma Posted March 12, 2012 Share Posted March 12, 2012 No Safari can't drag and drop (yet). Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now