File tree Expand file tree Collapse file tree 2 files changed +24
-7
lines changed Expand file tree Collapse file tree 2 files changed +24
-7
lines changed Original file line number Diff line number Diff line change 2323 }
2424 ],
2525 "require" : {
26- "php" : " >=5.4 .0" ,
26+ "php" : " >=7.2 .0" ,
2727 "ext-exif" : " *" ,
2828 "ext-fileinfo" : " *" ,
2929 "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 "
3535 },
3636 "require-dev" : {
3737 "phpunit/phpunit" : " ^6.2" ,
Original file line number Diff line number Diff line change @@ -558,6 +558,17 @@ function use(items) {
558558 }
559559 }
560560
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+
561572 function useCkeditor3 ( url ) {
562573 if ( ! usingCkeditor3 ( ) ) { return ; }
563574
@@ -589,6 +600,8 @@ function use(items) {
589600
590601 useTinymce4AndColorbox ( url ) ;
591602
603+ useTinymce5 ( url ) ;
604+
592605 useCkeditor3 ( url ) ;
593606
594607 useFckeditor2 ( url ) ;
@@ -626,6 +639,10 @@ function usingTinymce4AndColorbox() {
626639 return ! ! getUrlParam ( 'field_name' ) ;
627640}
628641
642+ function usingTinymce5 ( ) {
643+ return ! ! getUrlParam ( 'editor' ) ;
644+ }
645+
629646function usingCkeditor3 ( ) {
630647 return ! ! getUrlParam ( 'CKEditor' ) || ! ! getUrlParam ( 'CKEditorCleanUpFuncNum' ) ;
631648}
@@ -635,7 +652,7 @@ function usingFckeditor2() {
635652}
636653
637654function usingWysiwygEditor ( ) {
638- return usingTinymce3 ( ) || usingTinymce4AndColorbox ( ) || usingCkeditor3 ( ) || usingFckeditor2 ( ) ;
655+ return usingTinymce3 ( ) || usingTinymce4AndColorbox ( ) || usingTinymce5 ( ) || usingCkeditor3 ( ) || usingFckeditor2 ( ) ;
639656}
640657
641658// ==================================
You can’t perform that action at this time.
0 commit comments