8
0

ckeditor.js 696 B

12345678910111213141516171819202122232425262728293031
  1. /**
  2. * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. 'use strict';
  6. /**
  7. * This is the API entry point. The entire CKEditor code runs under this object.
  8. *
  9. * @class CKEDITOR
  10. * @singleton
  11. */
  12. CKEDITOR.define( function() {
  13. var CKEDITOR = {
  14. /**
  15. * Gets the full URL path for the specified plugin.
  16. *
  17. * Note that the plugin is not checked to exist. It is a pure path computation.
  18. *
  19. * @param {String} name The plugin name.
  20. * @returns {String} The full URL path of the plugin.
  21. */
  22. getPluginPath: function( name ) {
  23. return this.basePath + 'plugins/' + name + '/';
  24. }
  25. };
  26. return CKEDITOR;
  27. } );