Skip to content

Commit

Permalink
Fixed missing TinyMCE dependency for tinymce script
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Feb 1, 2025
1 parent 991d5a3 commit 362254a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/php/admin/class-tinymce-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ public static function register_scripts_styles() {
}

Script_And_Style_Helpers::register_and_enqueue_style( 'sgdg_tinymce', 'admin/css/tinymce.min.css' );
Script_And_Style_Helpers::register_and_enqueue_script( 'sgdg_tinymce', 'admin/js/tinymce.min.js' );
Script_And_Style_Helpers::register_and_enqueue_script(
'sgdg_tinymce',
'admin/js/tinymce.min.js',
array( 'wp-tinymce' )
);

Check warning on line 88 in src/php/admin/class-tinymce-plugin.php

View check run for this annotation

Codecov / codecov/patch

src/php/admin/class-tinymce-plugin.php#L84-L88

Added lines #L84 - L88 were not covered by tests
Script_And_Style_Helpers::add_script_configuration(
'sgdg_tinymce',
'sgdgTinymceLocalize',
Expand Down

0 comments on commit 362254a

Please sign in to comment.