Update to Drupal 8.1.2. For more information, see https://www.drupal.org/project/drupal/releases/8.1.2
This commit is contained in:
parent
9eae24d844
commit
28556d630e
1322 changed files with 6699 additions and 2064 deletions
|
@ -5,6 +5,7 @@
|
|||
* Provides integration with the CKEditor WYSIWYG editor.
|
||||
*/
|
||||
|
||||
use Drupal\Component\Utility\UrlHelper;
|
||||
use Drupal\Core\Routing\RouteMatchInterface;
|
||||
use Drupal\editor\Entity\Editor;
|
||||
|
||||
|
@ -85,8 +86,13 @@ function _ckeditor_theme_css($theme = NULL) {
|
|||
$info = system_get_info('theme', $theme);
|
||||
if (isset($info['ckeditor_stylesheets'])) {
|
||||
$css = $info['ckeditor_stylesheets'];
|
||||
foreach ($css as $key => $path) {
|
||||
$css[$key] = $theme_path . '/' . $path;
|
||||
foreach ($css as $key => $url) {
|
||||
if (UrlHelper::isExternal($url)) {
|
||||
$css[$key] = $url;
|
||||
}
|
||||
else {
|
||||
$css[$key] = $theme_path . '/' . $url;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isset($info['base theme'])) {
|
||||
|
|
Reference in a new issue