Coder Social home page Coder Social logo

uploadcare-redactor's People

Stargazers

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

Watchers

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

uploadcare-redactor's Issues

Wrap images in imageTag after upload

Hey there

Looking at the latest example at https://imperavi.com/redactor, it seems like images should be wrapped inside a <figure> tag (or whatever imageTag is set to) after insert, to be consistent with the default redactor behavior.

See: https://imperavi.com/redactor/docs/settings/images/#setting-imageTag

This specifically plays a role when a caption is present, as redactor otherwise doesn't recognize it as a caption for that image.

Repro would be:

  1. Insert image via uploadcare
  2. Click the image to open the modal and add a Caption, Save.
  3. Click the image again, the caption field is empty.

Broken Example

console errors on example.html

  • Download the repo to a webserver
  • hit example.html
  • Notice errors
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (redactor.css, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (redactor.js, line 0)
[Error] TypeError: undefined is not a function (evaluating '$('#redactor').redactor')
    (anonymous function) (index.html, line 11)
    j (jquery.min.js, line 2)
    fireWith (jquery.min.js, line 2)
    ready (jquery.min.js, line 2)
    I (jquery.min.js, line 2)

Redactor X support

We created an extension of this library and added support for Redactor X. Should we create a PR so this library would support v2, v3 and Redactor X or would it make sense to create separate repository for Redactor X?

Modal is not showing when the image is clicked in the Click-To-Edit

I have uploaded one image and it is in the redactor widget now.(I am using Click-To-Edit mode)
But the modal is not showing when the image is clicked inside the redactor widget and it works only when the out side of the image is clicked on the redactor editor.
Anybody knows why?

Drag and Drop

Would it be possible to implement drag and drop directly to the Redactor editor which background upload to uploadcare?

I'd like to use uploadcare for all our images and when somebody pasted and image or drops it into redactor, this should all land on uploadcare.

Thanks for your inputs. Also happy to help if it fits the scope of this plugin.

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.