Skip to content
Snippets Groups Projects
Commit 715ad916 authored by abu zakham's avatar abu zakham Committed by Rajab Natshah
Browse files

Issue #3157438 by abu-zakham: Fix CKEditor Media Embed not working on any https env

parent 0f83babc
Branches
Tags 8.x-7.10
No related merge requests found
embed_provider: '//ckeditor.iframe.ly/api/oembed?url={url}&callback={callback}'
ckeditor_version: ''
plugins_installed_version: ''
......@@ -141,4 +141,4 @@ filters:
status: true
weight: 0
settings:
replace_empty: '1'
\ No newline at end of file
replace_empty: '1'
......@@ -292,3 +292,17 @@ function varbase_editor_update_8701() {
}
}
}
/**
* Issue #3157438: Fix CKEditor Media Embed not working on any https env.
*/
function varbase_editor_update_8702() {
if (\Drupal::moduleHandler()->moduleExists('ckeditor_media_embed')) {
$ckeditor_media_embed_settings = \Drupal::service('config.factory')->getEditable('ckeditor_media_embed.settings');
$embed_provider = $ckeditor_media_embed_settings->get('embed_provider');
if (isset($embed_provider) && !empty($embed_provider)) {
$embed_provider = str_replace("http:", "", $embed_provider);
$ckeditor_media_embed_settings->set('embed_provider', $embed_provider)->save(TRUE);
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment