Git Product home page Git Product logo

uploadcare-ckeditor's Introduction

Uploadcare Ruby Gem

Simple ruby gem to interact with the Uploadcare API

Example Usage

require 'uploadcare'
pubkey = "d1531fba1b7fd176feaec8d1e7d86650ac549b9644e9279197a8c901243509dc"
pvtkey = "2f769cf086ece700f69fc58fb61e64a7708fee777068dc3f75798ae6166891f1"
file_id = "b6nn9f2d-1aj2-6q87-ofk0-265d8nki0diu"
ucare = Uploadcare.new(pubkey, pvtkey)
file = ucare.file(file_id)
file.info # Returns the files info hash
file.keep # Returns the updated info hash

Example Info Hashes

Preclaim Hash:

{
	"upload_date"=>"2011-10-25 02:05:50",
	"last_keep_claim"=>nil,
	"on_s3"=>true,
	"url"=>"http://api.uploadcare.com/api/files/b6nn9f2d-1aj2-6q87-ofk0-265d8nki0diu/",
	"file_id"=>"b6nn9f2d-1aj2-6q87-ofk0-265d8nki0diu",
	"original_filename"=>"test-image.png",
	"original_file_url"=>nil
}

Postclaim Hash:

{
	"upload_date"=>"2011-10-25 02:05:50",
	"last_keep_claim"=>"2011-10-25 02:19:06",
	"on_s3"=>true,
	"url"=>"http://api.uploadcare.com/api/files/b6nn9f2d-1aj2-6q87-ofk0-265d8nki0diu/",
	"file_id"=>"b6nn9f2d-1aj2-6q87-ofk0-265d8nki0diu",
	"original_filename"=>"test-image.png",
	"original_file_url"=>"http://s3.amazonaws.com/uploadcare/b6nn9f2d-1aj2-6q87-ofk0-265d8nki0diu/testimage.png"
}

Notes

All data in the examples (pubkey, pvtkey, file_id, example hashses) are intended to show usage and format. These values are randomly generated strings for this example and are therefore not valid. You must use your own public and private key, as well as a valid file id. Since the API is still very limited, thats about the extent of what you can do. Once delete functionallity is added to the API I will update the gem

uploadcare-ckeditor's People

Contributors

dayton1987 avatar disolovyov avatar dmitry-mukhin avatar grayhound avatar homm avatar lfbittencourt avatar nd0ut avatar valyagolev avatar zeroasterisk avatar zmoki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

uploadcare-ckeditor's Issues

Is there no longer a `release` branch?

I have the uploadcare-ckeditor plugin installed on a number of sites, using git and cloning it directly to the cKeditor plugins directory. Just yesterday, a git pull pulled the master branch, instead of the release branch. The release branch seems to no longer exists, from what I can see. Any chance we can get that release branch back?

github-instructions

does not work with ASP.NET and script resource

Hi,

I use ASP.NET and script resource manger. I added the uploadcare but it does not work at all. When I tried to debug it with Chrome tools I got the following error message:

Line 611, Column 26

Uncaught TypeError: Object [object Boolean] has no method 'replace' ScriptResource.axd?d=-BJxqQWtIXyAUU8DBZ_JU2eFa1Hh4otBZL2MTwnprYuj6irdqGEzU6BMZpu-GiTiU4o_Y6yxAG4u5M…:1115
event.returnValue is deprecated. Please use the standard event.preventDefault() instead.
2
Uncaught TypeError: Object [object Boolean] has no method 'replace' ScriptResource.axd?d=-BJxqQWtIXyAUU8DBZ_JU2eFa1Hh4otBZL2MTwnprYuj6irdqGEzU6BMZpu-GiTiU4o_Y6yxAG4u5M…:1115
12
Uncaught TypeError: Object [object Boolean] has no method 'replace' ScriptResource.axd?d=-BJxqQWtIXyAUU8DBZ_JU2eFa1Hh4otBZL2MTwnprYuj6irdqGEzU6BMZpu-GiTiU4o_Y6yxAG4u5M…:1115
String$trim ScriptResource.axd?d=-BJxqQWtIXyAUU8DBZ_JU2eFa1Hh4otBZL2MTwnprYuj6irdqGEzU6BMZpu-GiTiU4o_Y6yxAG4u5M…:1115
(anonymous function) uploadcare-0.17.0.min.js:9
normalize uploadcare-0.17.0.min.js:17
(anonymous function) uploadcare-0.17.0.min.js:17
(anonymous function) uploadcare-0.17.0.min.js:17
(anonymous function) uploadcare-0.17.0.min.js:17
(anonymous function) uploadcare-0.17.0.min.js:17
ns.build uploadcare-0.17.0.min.js:17
ns.openPanel uploadcare-0.17.0.min.js:17
ns.openDialog uploadcare-0.17.0.min.js:17
editor.addCommand.exec plugin.js?t=E0LB:23
exec ckeditor.js?t=B1GG4Z6:176
CKEDITOR.tools.extend.execCommand ckeditor.js?t=B1GG4Z6:238
CKEDITOR.tools.extend.click ckeditor.js?t=B1GG4Z6:610
d.execute ckeditor.js?t=B1GG4Z6:611
(anonymous function) ckeditor.js?t=B1GG4Z6:612
(anonymous function) ckeditor.js?t=B1GG4Z6:27
CKEDITOR.tools.callFunction ckeditor.js?t=B1GG4Z6:27
onclick Create_New_Message_Step3_html.aspx?MsgInfoGUID=0550d823-2004-4ec3-815c-88b93b9582e3:1
body.scrollLeft is deprecated in strict mode. Please use 'documentElement.scrollLeft' if in strict mode and 'body.scrollLeft' only if in quirks mode. ckeditor.js?t=B1GG4Z6:98
body.scrollTop is deprecated in strict mode. Please use 'documentElement.scrollTop' if in strict mode and 'body.scrollTop' only if in quirks mode. ckeditor.js?t=B1GG4Z6:98
Uncaught TypeError: Object [object Boolean] has no method 'replace' ScriptResource.axd?d=-BJxqQWtIXyAUU8DBZ_JU2eFa1Hh4otBZL2MTwnprYuj6irdqGEzU6BMZpu-GiTiU4o_Y6yxAG4u5M…:1115
String$trim ScriptResource.axd?d=-BJxqQWtIXyAUU8DBZ_JU2eFa1Hh4otBZL2MTwnprYuj6irdqGEzU6BMZpu-GiTiU4o_Y6yxAG4u5M…:1115
(anonymous function) uploadcare-0.17.0.min.js:9
normalize uploadcare-0.17.0.min.js:17
(anonymous function) uploadcare-0.17.0.min.js:17
(anonymous function) uploadcare-0.17.0.min.js:17
(anonymous function) uploadcare-0.17.0.min.js:17
(anonymous function) uploadcare-0.17.0.min.js:17
ns.build uploadcare-0.17.0.min.js:17
ns.openPanel uploadcare-0.17.0.min.js:17
ns.openDialog uploadcare-0.17.0.min.js:17
editor.addCommand.exec plugin.js?t=E0LB:23
exec ckeditor.js?t=B1GG4Z6:176
CKEDITOR.tools.extend.execCommand ckeditor.js?t=B1GG4Z6:238
CKEDITOR.tools.extend.click ckeditor.js?t=B1GG4Z6:610
d.execute ckeditor.js?t=B1GG4Z6:611
(anonymous function) ckeditor.js?t=B1GG4Z6:612
(anonymous function) ckeditor.js?t=B1GG4Z6:27
CKEDITOR.tools.callFunction ckeditor.js?t=B1GG4Z6:27
onclick Create_New_Message_Step3_html.aspx?MsgInfoGUID=0550d823-2004-4ec3-815c-88b93b9582e3:1

Version: 4.7.1 ckeditor

Hey, problem ckeditor 4.7.1? not working...

My plugins list.

richcombo
basicstyles
notificationaggregator
removeformat
lineutils
button
uploadwidget
colorbutton
toolbar
uploadimage
colordialog
fakeobjects
filetools
widget
link
youtube

CKeditor unresponsive on IE9 with v2.5.5

Using the latest v2.5.5 makes the ckeditor unresponsive in IE9. It works with v2.4.0, but the rest of our site is using v2.5.5, so we'd like to try keep it all on the same version.

Issues with ckeditor 4.1

It looks like the editor is including the uploadcare-0.5.0.min.js file and uploading images looks different than the demos on the uploadcare site https://uploadcare.com/widget/0.7.0.1/en/.

I need the functionality to preview and edit the files before including them in the form.

In addition to ckeditor I'm using it as a regular form file upload input box. I'm hoping there is a simple way to upgrade the .js so I can get this functionality.. I'd love to use uploadcare for our series of apps.

Doesn't works with multiple instances of Ckeditors on same web-page

Hello,
i am using multiple instances of ckeditors on single web page. All ckeditors includes uploadcare plugin. When i use uploadcare plugin to upload image on first editor, it inserts the image into the last instance of ckeditor.

Can you suggest a resolution for this?

Thank You!

CKEditor v5 support

File Uploader for CKEditor v5 is on its way. Stay tuned.

Do you have any plans when CKE 5 support could be added? CKE 4 reached EOL in June 2023.

bundled version from ckeditor site doesn't seem to work

Третье - загрузил сборку с сайта ckeditor-а, где включил в нее плагин uploadcare. При подключении на сайте вижу ошибку, открываю ckeditor.js, а там такой кусок встречается:

.....CKEDITOR.plugins.add("uploadcare",{init:function(a){"undefined"===typeof UPLOADCARE_CROP.....

Updating to version 3.1.0

Greetings!

Wondering when plugin will be updated to version 3.1.0? Wish to include in software project but like to have latest version.

Thank you.

Custom Storage

How to get custom storage to S3 work on ckeditor plugin? I'm uploading files but they are not copied to my S3 bucket.

Configure uploadcare with wiris

Hi,

How can I use uploadcare with wiris math editor?
When I add uploadcare to CKEditor, it breaks wiris.

Wiris is configured by this param:

config.extraPlugins += (config.extraPlugins.length == 0 ? '' : ',') + 'ckeditor_wiris';

How can I add uploadcare?

ckeditor plugin issue with prototype.js

My site uses prototype.js. Whenever I include the uploadcare plugin for ckeditor the prototype.js starts throwing all kinds of weird errors. If I remove the ckeditor plugin it works fine (no errors) all other plugins work fine.

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.