Coder Social home page Coder Social logo

anchorcms-0.9.2-drag-drop-fix's People

Contributors

mazzorini avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

kevinfs

anchorcms-0.9.2-drag-drop-fix's Issues

JSON.Parse Error

Hi Guys,
I always get an error at line 139 in the dragdrop.js .

unexpected token <

The Error seam to have something to do with this line.

var data = JSON.parse(response);

Maybe you can help me finding the error.

Thank you in advance for your help.

Woot! Fixed!

This got implemented in the latest dev version of Anchor! Thank you @mazzo-!

Link to full-sized image?

Thanks for this fix.

When I drag and drop an image that is wider than the post's width, I notice that it is resized to fit the post width. Is it possible to include a link to the full-sized image so that if the person clicks on the resized image, they can view the full-sized image in a new page/tab? Which bit of code in this fix would need to be updated to do this?

No JSON returned

When I try to drag&drop an image in the post content, the console returns this warning :
SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data on dragdrop.js l.139

I've been able to track it down to the call of the upload function in the complete function (l. 93) with the params being : /admin/posts/upload/ and a file object.

Of course, nothing happens and the picture doesn't seem to be uploaded.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.