Opened 17 months ago
Closed 3 months ago
#58949 closed defect (bug) (invalid)
Directory 'code' missing from 'wp-includes/js/tinymce/plugins'
Reported by: | jobst | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 6.2.2 |
Component: | TinyMCE | Keywords: | reporter-feedback |
Focuses: | ui, javascript | Cc: |
Description
Directory 'code' missing from 'wp-includes/js/tinymce/plugins'
It used to be there but it's missing now - i.e. I did NOT receive an error when using the plugin 'code' for tinymce.
I do not know when it stopped to be there.
latest WP version
yes
steps taken to consistently reproduce the problem
If you build a text area using the following code
<textarea name='commentEditor' id='commentEditor' form='notes-form' class='tinymce-enabled required'>Please wait ...</textarea> <script> jQuery(document).ready(function(){ tinyMCE.init({ plugins: 'textcolor lists code ', toolbar: 'undo redo formatselect fontsizeselect bold italic underline subscript superscript forecolor backcolor bullist numlist code ', mode: 'exact', theme: 'modern', menubar: false, statusbar: false, elements: 'commentEditor', forced_root_block: '', force_br_newlines: false, force_p_newlines: false, apply_source_formatting: false, cleanup: false, theme_advanced_statusbar_location: 'bottom', theme_advanced_path: false, theme_advanced_resizing: true, theme_advanced_resize_horizontal: false, theme_advanced_resizing_use_cookie : true, branding: false }); }); </script>
you will receive an error in the web development console section:
GET https://DOMAIN.COM/wp-includes/js/tinymce/plugins/code/plugin.min.js Status 404 Not Found
Does problem occur when all plugins deactivated and use the default theme?
N/A
what is the expected output or result? What did you see instead?
The expected outcomes would be:
1) the direcotry and file 'DOMAIN.COM/wp-includes/js/tinymce/plugins/code/plugin.min.js'would be available
2) tinymce would show the code icon
3) no error displayed
additional information
Not that this really matters for this, more related to wordpress version
os: alma 8.8
php: 7.4.33 AND 8.1
browser: not applicable
Change History (2)
Note: See
TracTickets for help on using
tickets.
Think the error comes from this line:
plugins: 'textcolor lists code'
. As far as I know thecode
plugin was merged in TinyMCE quite some time ago and doesn't exist any more. Maybe try to remove it and see if that fixes it.