|
@@ -48,10 +48,7 @@ export default class FileRepository extends Plugin {
|
|
|
* {@link module:upload/filerepository~Adapter Adapter} that will be used to upload files.
|
|
* {@link module:upload/filerepository~Adapter Adapter} that will be used to upload files.
|
|
|
* {@link module:upload/filerepository~FileLoader FileLoader} instance associated with the adapter
|
|
* {@link module:upload/filerepository~FileLoader FileLoader} instance associated with the adapter
|
|
|
* will be passed to that function.
|
|
* will be passed to that function.
|
|
|
- *
|
|
|
|
|
- * fileRepository.createAdapter = function( loader ) {
|
|
|
|
|
- * return new ServerAdapter();
|
|
|
|
|
- * };
|
|
|
|
|
|
|
+ * For more information and example see {@link module:upload/filerepository~Adapter Adapter}.
|
|
|
*
|
|
*
|
|
|
* @abstract
|
|
* @abstract
|
|
|
* @function
|
|
* @function
|
|
@@ -425,6 +422,12 @@ mix( FileLoader, ObservableMixin );
|
|
|
* }
|
|
* }
|
|
|
* }
|
|
* }
|
|
|
*
|
|
*
|
|
|
|
|
+ * Then adapter can be set to be used by {@link module:upload/filerepository~FileRepository FileRepository}:
|
|
|
|
|
+ *
|
|
|
|
|
+ * editor.plugins.get( 'upload/filerepository' ).createAdapter = function( loader ) {
|
|
|
|
|
+ * return new Adapter( loader );
|
|
|
|
|
+ * };
|
|
|
|
|
+ *
|
|
|
* @interface Adapter
|
|
* @interface Adapter
|
|
|
*/
|
|
*/
|
|
|
|
|
|