diff --git a/packages/Webkul/Admin/src/Resources/views/layouts/tinymce.blade.php b/packages/Webkul/Admin/src/Resources/views/layouts/tinymce.blade.php
index 9b84d5e0e..a7f85e61b 100644
--- a/packages/Webkul/Admin/src/Resources/views/layouts/tinymce.blade.php
+++ b/packages/Webkul/Admin/src/Resources/views/layouts/tinymce.blade.php
@@ -7,7 +7,7 @@
let config = {
relative_urls : false,
- remove_script_host : true,
+ remove_script_host : false,
document_base_url : '{{ asset('/') }}',
uploadRoute: '{{ route('admin.tinymce.upload') }}',
csrfToken: '{{ csrf_token() }}',
diff --git a/packages/Webkul/Core/src/Database/Seeders/ChannelTableSeeder.php b/packages/Webkul/Core/src/Database/Seeders/ChannelTableSeeder.php
index 985af5d19..770b14ec0 100755
--- a/packages/Webkul/Core/src/Database/Seeders/ChannelTableSeeder.php
+++ b/packages/Webkul/Core/src/Database/Seeders/ChannelTableSeeder.php
@@ -9,45 +9,48 @@ class ChannelTableSeeder extends Seeder
{
public function run()
{
+ $baseUrl = env('APP_URL');
+
DB::table('channels')->delete();
DB::table('channels')->insert([
- 'id' => 1,
- 'code' => 'default',
- 'theme' => 'velocity',
- 'hostname' => config('app.url'),
- 'root_category_id' => 1,
+ 'id' => 1,
+ 'code' => 'default',
+ 'theme' => 'velocity',
+ 'hostname' => config('app.url'),
+ 'root_category_id' => 1,
'default_locale_id' => 1,
- 'base_currency_id' => 1,
+ 'base_currency_id' => 1,
]);
DB::table('channel_translations')->insert([
[
- 'id' => 1,
- 'channel_id' => 1,
- 'locale' => 'en',
- 'name' => 'Default',
+ 'id' => 1,
+ 'channel_id' => 1,
+ 'locale' => 'en',
+ 'name' => 'Default',
'home_page_content' => '
@include("shop::home.slider") @include("shop::home.featured-products") @include("shop::home.new-products")
-
.)
+
',
- 'footer_content' => '
+ 'footer_content' => '
@@ -61,33 +64,34 @@ class ChannelTableSeeder extends Seeder
',
- 'home_seo' => '{"meta_title": "Demo store", "meta_keywords": "Demo store meta keyword", "meta_description": "Demo store meta description"}',
+ 'home_seo' => '{"meta_title": "Demo store", "meta_keywords": "Demo store meta keyword", "meta_description": "Demo store meta description"}',
], [
- 'id' => 2,
- 'channel_id' => 1,
- 'locale' => 'fr',
- 'name' => 'Default',
+ 'id' => 2,
+ 'channel_id' => 1,
+ 'locale' => 'fr',
+ 'name' => 'Default',
'home_page_content' => '
@include("shop::home.slider") @include("shop::home.featured-products") @include("shop::home.new-products")
-
.)
+
',
- 'footer_content' => '
+ 'footer_content' => '
@@ -101,33 +105,34 @@ class ChannelTableSeeder extends Seeder
',
- 'home_seo' => '{"meta_title": "Demo store", "meta_keywords": "Demo store meta keyword", "meta_description": "Demo store meta description"}',
+ 'home_seo' => '{"meta_title": "Demo store", "meta_keywords": "Demo store meta keyword", "meta_description": "Demo store meta description"}',
], [
- 'id' => 3,
- 'channel_id' => 1,
- 'locale' => 'nl',
- 'name' => 'Default',
+ 'id' => 3,
+ 'channel_id' => 1,
+ 'locale' => 'nl',
+ 'name' => 'Default',
'home_page_content' => '
@include("shop::home.slider") @include("shop::home.featured-products") @include("shop::home.new-products")
-
.)
+
',
- 'footer_content' => '
+ 'footer_content' => '
@@ -141,33 +146,34 @@ class ChannelTableSeeder extends Seeder
',
- 'home_seo' => '{"meta_title": "Demo store", "meta_keywords": "Demo store meta keyword", "meta_description": "Demo store meta description"}',
+ 'home_seo' => '{"meta_title": "Demo store", "meta_keywords": "Demo store meta keyword", "meta_description": "Demo store meta description"}',
], [
- 'id' => 4,
- 'channel_id' => 1,
- 'locale' => 'tr',
- 'name' => 'Default',
+ 'id' => 4,
+ 'channel_id' => 1,
+ 'locale' => 'tr',
+ 'name' => 'Default',
'home_page_content' => '
@include("shop::home.slider") @include("shop::home.featured-products") @include("shop::home.new-products")
-
.)
+
',
- 'footer_content' => '
+ 'footer_content' => '
@@ -181,33 +187,34 @@ class ChannelTableSeeder extends Seeder
',
- 'home_seo' => '{"meta_title": "Demo store", "meta_keywords": "Demo store meta keyword", "meta_description": "Demo store meta description"}',
+ 'home_seo' => '{"meta_title": "Demo store", "meta_keywords": "Demo store meta keyword", "meta_description": "Demo store meta description"}',
], [
- 'id' => 5,
- 'channel_id' => 1,
- 'locale' => 'es',
- 'name' => 'Default',
+ 'id' => 5,
+ 'channel_id' => 1,
+ 'locale' => 'es',
+ 'name' => 'Default',
'home_page_content' => '
@include("shop::home.slider") @include("shop::home.featured-products") @include("shop::home.new-products")
-
.)
+
',
- 'footer_content' => '
+ 'footer_content' => '
@@ -221,22 +228,22 @@ class ChannelTableSeeder extends Seeder
',
- 'home_seo' => '{"meta_title": "Demo store", "meta_keywords": "Demo store meta keyword", "meta_description": "Demo store meta description"}',
- ]
+ 'home_seo' => '{"meta_title": "Demo store", "meta_keywords": "Demo store meta keyword", "meta_description": "Demo store meta description"}',
+ ],
]);
DB::table('channel_currencies')->insert([
- 'channel_id' => 1,
+ 'channel_id' => 1,
'currency_id' => 1,
]);
DB::table('channel_locales')->insert([
'channel_id' => 1,
- 'locale_id' => 1,
+ 'locale_id' => 1,
]);
DB::table('channel_inventory_sources')->insert([
- 'channel_id' => 1,
+ 'channel_id' => 1,
'inventory_source_id' => 1,
]);
}