Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge 492ebd3 into d0083e3
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Jasiun committed Mar 6, 2018
2 parents d0083e3 + 492ebd3 commit 698abbc
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions src/cloudservices.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export default class CloudServices extends Plugin {
* The URL to which the files should be uploaded.
*
* @readonly
* @default 'https://files.cke-cs.com/upload/'
* @member {String} #uploadUrl
*/

Expand Down Expand Up @@ -85,7 +84,10 @@ CloudServices.Token = Token;
*
* ClassicEditor
* .create( document.querySelector( '#editor' ), {
* cloudServices: ... // CloudServices config.
* cloudServices: {
* uploadUrl: 'https://your-organisation-id.cke-cs.com/easyimage/upload/',
* tokenUrl: 'https://example.com/cs-token-endpoint'
* }
* } )
* .then( ... )
* .catch( ... );
Expand All @@ -99,23 +101,13 @@ CloudServices.Token = Token;
* The authentication token URL for CKEditor Cloud Services. The token is used to authenticate all plugins using Cloud Services,
* for instance Easy Image. The token URL has to point to the service where the token is generated.
*
* ClassicEditor
* .create( document.querySelector( '#editor' ), {
* cloudServices: {
* tokenUrl: TOKEN_URL
* },
* plugins: [ ArticlePluginSet, EasyImage ],
* toolbar: [ 'headings', 'undo', 'redo', 'insertImage' ],
* image: {
* toolbar: [ 'imageStyleFull', 'imageStyleSide', '|', 'imageTextAlternative' ]
* }
* } );
* See [Cloud Services Quick Start](https://docs.ckeditor.com/cs/latest/guides/quick-start.html).
*
* @member {String} module:cloudservices/cloudservices~CloudServicesConfig#tokenUrl
*/

/**
* The URL to which the files should be uploaded.
*
* @member {String} [module:cloudservices/cloudservices~CloudServicesConfig#uploadUrl='https://files.cke-cs.com/upload/']
* @member {String} [module:cloudservices/cloudservices~CloudServicesConfig#uploadUrl]
*/

0 comments on commit 698abbc

Please sign in to comment.