File tree 2 files changed +24
-7
lines changed
2 files changed +24
-7
lines changed Original file line number Diff line number Diff line change 23
23
}
24
24
],
25
25
"require" : {
26
- "php" : " >=5.4 .0" ,
26
+ "php" : " >=7.2 .0" ,
27
27
"ext-exif" : " *" ,
28
28
"ext-fileinfo" : " *" ,
29
29
"intervention/image" : " 2.*" ,
30
- "illuminate/config" : " 5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0" ,
31
- "illuminate/filesystem" : " 5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0" ,
32
- "illuminate/support" : " 5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0" ,
33
- "illuminate/http" : " 5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0" ,
34
- "illuminate/container" : " 5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0"
30
+ "illuminate/config" : " 5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0 || ^7.0 " ,
31
+ "illuminate/filesystem" : " 5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0 || ^7.0 " ,
32
+ "illuminate/support" : " 5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0 || ^7.0 " ,
33
+ "illuminate/http" : " 5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0 || ^7.0 " ,
34
+ "illuminate/container" : " 5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.* || ^6.0 || ^7.0 "
35
35
},
36
36
"require-dev" : {
37
37
"phpunit/phpunit" : " ^6.2" ,
Original file line number Diff line number Diff line change @@ -558,6 +558,17 @@ function use(items) {
558
558
}
559
559
}
560
560
561
+ function useTinymce5 ( url ) {
562
+ if ( ! usingTinymce5 ( ) ) { return ; }
563
+
564
+ parent . postMessage ( {
565
+ mceAction : 'insert' ,
566
+ content : url
567
+ } ) ;
568
+
569
+ parent . postMessage ( { mceAction : 'close' } ) ;
570
+ }
571
+
561
572
function useCkeditor3 ( url ) {
562
573
if ( ! usingCkeditor3 ( ) ) { return ; }
563
574
@@ -589,6 +600,8 @@ function use(items) {
589
600
590
601
useTinymce4AndColorbox ( url ) ;
591
602
603
+ useTinymce5 ( url ) ;
604
+
592
605
useCkeditor3 ( url ) ;
593
606
594
607
useFckeditor2 ( url ) ;
@@ -626,6 +639,10 @@ function usingTinymce4AndColorbox() {
626
639
return ! ! getUrlParam ( 'field_name' ) ;
627
640
}
628
641
642
+ function usingTinymce5 ( ) {
643
+ return ! ! getUrlParam ( 'editor' ) ;
644
+ }
645
+
629
646
function usingCkeditor3 ( ) {
630
647
return ! ! getUrlParam ( 'CKEditor' ) || ! ! getUrlParam ( 'CKEditorCleanUpFuncNum' ) ;
631
648
}
@@ -635,7 +652,7 @@ function usingFckeditor2() {
635
652
}
636
653
637
654
function usingWysiwygEditor ( ) {
638
- return usingTinymce3 ( ) || usingTinymce4AndColorbox ( ) || usingCkeditor3 ( ) || usingFckeditor2 ( ) ;
655
+ return usingTinymce3 ( ) || usingTinymce4AndColorbox ( ) || usingTinymce5 ( ) || usingCkeditor3 ( ) || usingFckeditor2 ( ) ;
639
656
}
640
657
641
658
// ==================================
You can’t perform that action at this time.
0 commit comments