You can pass an array of settings to the editor instance.
For possible values please refer to the tinymce documentation, in your case ‘init_instance_callback’ might be helpful.
https://www.tinymce.com/docs/configure/integration-and-setup/#init_instance_callback
wp_editor('', 'sedemoeditor', array(
'tinymce' => array(
'init_instance_callback' => 'function(editor) {
editor.on("focus", function(){
console.log("Editor: " + editor.id + " focus.");
});
}'
)
));
Related Posts:
- Do I require the use of nonce?
- Problem with WordPress Ajax form
- wp_insert_post() is returning the correct post ID, no failure, but the post content does not get updated
- How to test nonce with AJAX – Plugin development
- How to select the contents in the text view textrea in wp_editor?
- WordPress ajax doesn’t display object method on jQuery .change() function
- adjust section according to country?
- Is it save to use eval for a jQuery callback method coming from the database?
- Removed jQuery script from header.php , any problems?
- Execute Jquery when a specific page in my plugin is loading
- Ajax on the Administration Side of plugin – wp_localize_script – how to pass value from JQuery to PHP function in class?
- Using wp_editor() when not logged stopped working
- Input field duplicates on form submit by jQuery
- defined (‘ABSPATH’) false after AJAX post to other PHP-file
- How to load WP_Editor JS files manually (with AJAX)?
- Add php function into .js file (for tinyMCE button)
- Why this plugin is not working?
- Trouble using wordpress functions in a pop-up modal form
- Is there a way to get wp_editor (tinymce) content?
- getJSON response to PHP
- ajax problems on loading page [closed]
- JQuery UI Autocomplete showing as bullets
- How to save WordPress post and attachment images from front end using media library?
- wp_editor and WPAlchemy messes up tags when updating
- Colorbox ajax loading of outside HTML content works perfect on localhost but not on server
- How do I use the Simple HTML DOM Parser in plugin when other plugin already uses it?
- Query String being Removed Creating a Pagination Issue within a Custom Plugin
- PHP can I add line numbers to file_get_contents()
- Asking popup for delete post in WordPress [closed]
- Add htaccess rules with insert_with_markers at beginning of htaccess
- custom shortcode will not display the wrapped content
- Sending jsPDF documents to the server
- How to call function at the bottom of post using plugin?
- Use ajax from function.php
- Ajax return code 400
- How to restrict wp generate attachment metadata() to certain intermediate image sizes
- Parsing php string in jquery [closed]
- doing an ajax request always outputs 0
- Insert array data on plugin activation
- Will simple function names in a class structure conflict with other plugins?
- Do my defines need to be unique?
- jQuery .each to get post meta and subtract from a sum
- WordPress php filter admin_body_class not working
- Show post in slider
- How do i use this jquery script on a wordpress site?
- Using shipped version of jquery
- Instantiate class to be available to all plugin functions
- How to show a dynamic_sidebar if main content content’s height is > a set amount?
- Removing unneccessary p-tags (Not every p)
- Common abstract class for plugins
- Bridging TinyMCE js and WordPress PHP?
- What does $wpdb->get_row return?
- Woocommerce add to cart quantity buttons with AJAX
- WP add_action factory
- wp_loaded hook block script enquequing
- js file in root loading without
- hover image appears below placeholder instead of overlayed
- combine Code 1 with Code 2
- WooCommerce – Reset quantity input field when variation changes
- WP nonce invalid
- class click counter save number
- woocommerce subscriptions – get expiration date [closed]
- Same log message keeps on printing to debug.log file thousand of times
- Slider loading issue
- Adding Default Settings to Theme My Login plugin
- Checking for new message using AJAX and PHP. Server overload?
- Custom filter in admin edit custom post type responding with invalid post type?
- WordPress Scheduled Event Request Blocking
- jQuery not defined
- How can i upload images in an admin page?
- Append HTML Using Shortcode
- AJAX request status 200 but no actual “response”
- Delete a WordPress transient from a shortcode on Page/Post update
- Conditional Header in wordpress
- Plugin CSS not enqueing
- Create onClick Event to Re-load a Widget
- Swapping wp_dropdown_categories function with wp_category_checklist
- Accessing the database from a plugin outside of action hooks
- Adding subdomain to home_url for “add_menu_page”
- Create another “Display Site Title and Tagline” checkbox, “Header Text Color” setting and control
- How to show phpinfo() only in a new tab?
- How to find error in my code when the error message is pointing to WP core file?
- wordpress count link clicks by ip address
- Proper syntax or method for keeping url in modified isotope / category links
- How to access global variable $menu inside a class function
- ajax, right way to do it and make it works?
- Hide categories that are not used in the post type
- Is there a way to programmatically create multiple pages utilizing the same template but different content from a json file?
- Automated Cart Update With Alert Box Each Time
- How can I remove a function that has been added to wordpress with add_filter?
- PHP Fatal error: Uncaught mysqli_sql_exception: Table doesn’t exist in wordpress/wp-includes/wp-db.php
- Ajax load more posts with multiple tax query
- WooCommerce/WordPress: how hide entire table form after submit (Admin Dashboard)?
- How to sanitize any integer input field in wordpress?
- WordPress Sending data to Ajax with select option
- How to set up VS Code for WP plugin/theme development in 2021? [closed]
- Ajax loaded form replaces form action with Ajax url
- Custom user login page by creating a plugin
- prevent default not stopping page refresh. Passing form information to and from php with ajax in a wordpress site
- Singelton class does not work, multiple initialization on page reload