Closed qdequippe closed 2 years ago
PHP 7.1, Symfony 4.2
symfony/symfony v4.2.11 v4.3.3 The Symfony PHP framework symfony/webpack-encore-bundle v1.6.2 v1.6.2 Integration with your Symfony app & Webpack Encore!
@symfony/webpack-encore@0.27.0
CKEDITOR_BASEPATH does not take into account the CDN configured with Webpack Encore.
... <script type="text/javascript"> var CKEDITOR_BASEPATH = "https://MY_CDN_HOST/ckeditor/"; </script> <script type="text/javascript" src="https://MY_CDN_HOST/ckeditor/ckeditor.js"></script> ...
... <script type="text/javascript"> var CKEDITOR_BASEPATH = "/build/ckeditor/"; </script> <script type="text/javascript" src="https://MY_CDN_HOST/ckeditor/ckeditor.js"></script> ...
And here (js) CKEDITOR.basePath is https://CURRENT_HOST/build/ckeditor/ and config dir of CKEDITOR is not found.
CKEDITOR.basePath
https://CURRENT_HOST/build/ckeditor/
Environment
PHP 7.1, Symfony 4.2
Symfony & Node packages
Subject
CKEDITOR_BASEPATH does not take into account the CDN configured with Webpack Encore.
Steps to reproduce
Expected results
Actual results
And here (js)
CKEDITOR.basePath
ishttps://CURRENT_HOST/build/ckeditor/
and config dir of CKEDITOR is not found.