cloudservicesmock.js 543 B

1234567891011121314151617181920212223242526
  1. /**
  2. * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
  6. /**
  7. * Mocked CloudServices that
  8. */
  9. export default class CloudServicesMock extends Plugin {
  10. init() {
  11. const editor = this.editor;
  12. const config = editor.config;
  13. const options = config.get( 'cloudServices' );
  14. for ( const optionName in options ) {
  15. this[ optionName ] = options[ optionName ];
  16. }
  17. this.token = {
  18. value: 'token'
  19. };
  20. }
  21. }