You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
650 B

  1. <?php
  2. /**
  3. * @link http://www.yii-china.com/
  4. * @copyright Copyright (c) 2015 Yii中文网
  5. */
  6. namespace common\widgets\ueditor\assets;
  7. use Yii;
  8. use yii\web\AssetBundle;
  9. /**
  10. * @author Xianan Huang <xianan_huang@163.com>
  11. */
  12. class UeditorAsset extends AssetBundle
  13. {
  14. public $css = [
  15. ];
  16. public $js = [
  17. 'ueditor.config.js',
  18. 'ueditor.all.min.js',
  19. ];
  20. public $depends = [
  21. ];
  22. /**
  23. * 初始化:sourcePath赋值
  24. * @see \yii\web\AssetBundle::init()
  25. */
  26. public function init()
  27. {
  28. $this->sourcePath = dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR . 'vendor';
  29. }
  30. }