UeditorAsset.php 770 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Author: lf
  4. * Blog: https://blog.feehi.com
  5. * Email: job@feehi.com
  6. * Created at: 2017-03-15 21:16
  7. */
  8. namespace backend\assets;
  9. /**
  10. * 重要提示:启用配置后,修改此处的js/css将不会生效
  11. * 需要在backend/config/main.php中assetManager.bundles处修改配置
  12. * 主要用于测试环境走本地文件,正式环境配置成cdn
  13. * Class UeditorAsset
  14. * @package backend\assets
  15. */
  16. class UeditorAsset extends \yii\web\AssetBundle
  17. {
  18. public $basePath = "@web";
  19. public $sourcePath = '@backend/web/static/js/plugins/ueditor/';
  20. public $js = [
  21. 'ueditor.all.min.js',
  22. ];
  23. public $publishOptions = [
  24. 'except' => [
  25. 'php/',
  26. 'index.html',
  27. '.gitignore'
  28. ]
  29. ];
  30. }