Skip to content

Commit fbc988a

Browse files
authored
Update integration.md
1 parent cc7a677 commit fbc988a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/integration.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Check `vendor/unisharp/laravel-filemanager/src/views/demo.blade.php`, which alre
4242
<textarea name="content" class="form-control my-editor">{!! old('content', $content) !!}</textarea>
4343
<script>
4444
var editor_config = {
45+
path_absolute : "/",
4546
selector: 'textarea.my-editor',
4647
relative_urls: false,
4748
plugins: [
@@ -55,7 +56,7 @@ Check `vendor/unisharp/laravel-filemanager/src/views/demo.blade.php`, which alre
5556
var x = window.innerWidth || document.documentElement.clientWidth || document.getElementsByTagName('body')[0].clientWidth;
5657
var y = window.innerHeight|| document.documentElement.clientHeight|| document.getElementsByTagName('body')[0].clientHeight;
5758
58-
var cmsURL = "/admin/" + 'laravel-filemanager?editor=' + meta.fieldname;
59+
var cmsURL = editor_config.path_absolute + 'laravel-filemanager?editor=' + meta.fieldname;
5960
if (meta.filetype == 'image') {
6061
cmsURL = cmsURL + "&type=Images";
6162
} else {

0 commit comments

Comments
 (0)