[wp-trac] [WordPress Trac] #58949: Directory 'code' missing from 'wp-includes/js/tinymce/plugins'

WordPress Trac noreply at wordpress.org
Tue Aug 1 01:19:15 UTC 2023


#58949: Directory 'code' missing from 'wp-includes/js/tinymce/plugins'
----------------------------+-----------------------------
 Reporter:  jobst           |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  TinyMCE         |    Version:  6.2.2
 Severity:  normal          |   Keywords:
  Focuses:  ui, javascript  |
----------------------------+-----------------------------
 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

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58949>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list