Web Dev Tuts

/ Stuffs About Website Development /

Menu
  • Home
  • Wp Plugins
  • How To
  • FAQ
    • GIT
    • JQuery
    • PHP
    • WooCommerce
    • WordPress
  • Contact Us
Menu

How to add wp_editor Dynamically

Posted on October 2, 2020October 4, 2020 by Edesa Cee

Add this to your php file

wp_enqueue_editor();

Add this on your script after you load the wp_editor elements to your web page.

tinymce.execCommand( ‘mceRemoveEditor’, false, ‘proj_desc’ );
tinymce.execCommand( ‘mceAddEditor’, false, ‘proj_desc’ );
quicktags({id : “proj_desc”});

 

Source: https://carlofontanos.com/loading-wp_editor-via-ajax/

Category: Wordpress

Recent Posts

  • How to add wp_editor Dynamically
  • How to Hide Certain Pages from Certain Users (WP Dashboard)
  • How to Set Up Gmail SMTP
  • How to Set Up Virtual Host in Localhost & Xampp
  • How to Determine the Current WordPress Version Used
  • AngularJs
  • CSS
  • For Me Only
  • geo location api
  • GIT
  • GoDaddy
  • Hosting
  • How To
  • Javascript
  • JQuery
  • Magento
  • My Notes
  • PHP
  • Private
  • Sass
  • WooCommerce
  • Wordpress
  • Xampp
© 2023 Web Dev Tuts | Powered by Minimalist Blog WordPress Theme