File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 5252 <div class =" row" >
5353 <div class =" col-md-12" >
5454 <h2 class =" mt-4" >Embed file manager</h2 >
55- <iframe src =" /filemanager" style =" width : 100% ; height : 500px ; overflow : hidden ; border : none ;" ></iframe >
55+ <iframe src =" /{{ config ( ' lfm.url_prefix ' ) ?: ' filemanager' } } " style =" width : 100% ; height : 500px ; overflow : hidden ; border : none ;" ></iframe >
5656 </div >
5757 </div >
5858 </div >
6161 <script src =" https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" ></script >
6262 <script src =" https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" ></script >
6363 <script >
64- var route_prefix = " /filemanager" ;
64+ var route_prefix = " /{{ config ( ' lfm.url_prefix ' ) ?: ' filemanager' } } " ;
6565 </script >
6666
6767 <!-- CKEditor init -->
186186 tooltip: ' Insert image with filemanager' ,
187187 click : function () {
188188
189- lfm ({type: ' image' , prefix: ' /filemanager ' }, function (lfmItems , path ) {
189+ lfm ({type: ' image' , prefix: route_prefix }, function (lfmItems , path ) {
190190 lfmItems .forEach (function (lfmItem ) {
191191 context .invoke (' insertImage' , lfmItem .url );
192192 });
You can’t perform that action at this time.
0 commit comments