@@ -380,7 +380,7 @@ public function onDisplay(
380380 }
381381
382382 // Convert pt to px in dropdown
383- $ scriptOptions ['fontsize_formats ' ] = '8px 10px 12px 14px 18px 24px 36px ' ;
383+ $ scriptOptions ['font_size_formats ' ] = '8px 10px 12px 14px 18px 24px 36px ' ;
384384
385385 // select the languages for the "language of parts" menu
386386 if (isset ($ extraOptions ->content_languages ) && $ extraOptions ->content_languages ) {
@@ -401,6 +401,11 @@ public function onDisplay(
401401 $ plugins = array_merge ($ plugins , explode (strpos ($ custom_plugin , ', ' ) !== false ? ', ' : ' ' , $ custom_plugin ));
402402 }
403403
404+ // Version 6 unload removed plugins
405+ $ plugins = array_filter ($ plugins , function ($ plugin ) {
406+ return !in_array ($ plugin , ['hr ' , 'paste ' , 'print ' ]);
407+ });
408+
404409 if ($ custom_button ) {
405410 $ toolbar1 = array_merge ($ toolbar1 , explode (strpos ($ custom_button , ', ' ) !== false ? ', ' : ' ' , $ custom_button ));
406411 }
@@ -412,7 +417,6 @@ public function onDisplay(
412417 $ scriptOptions = array_merge (
413418 $ scriptOptions ,
414419 [
415- 'deprecation_warnings ' => JDEBUG ? true : false ,
416420 'suffix ' => JDEBUG ? '' : '.min ' ,
417421 'baseURL ' => Uri::root (true ) . '/media/vendor/tinymce ' ,
418422 'directionality ' => $ language ->isRtl () ? 'rtl ' : 'ltr ' ,
0 commit comments