Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

254
Views
TinyMCE Failed to initialize plugin: code error in wordpress

I've been trying to add TinyMCE editor to my WordPress plugin. I'm aware that we can use the wp_editor() function to achieve this but it doesn't work when I call it via ajax. I've tried a few solutions for it but then managed to make it work directly.

The issue I'm having now is that it's giving an error for the 'code' plugin.

Here is the code for tinymce:

tinymce.init({
        menubar: false,
        selector: '#p_' + r,
        plugins: 'code',
        skin_url: '../wp-includes/js/tinymce/skins/lightgray'
    });

I'm getting this error on the editor:

Failed to initialize plugin: code

Console Errors:

enter image description here

PS: I've checked the plugins directory and the 'code' plugin folder is present i

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!