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
- Most efficient way to add javascript file to specific post and/or pages?
- How to make WordPress plugin check for database changes and then do something?
- Is it possible to get a theme customizer setting from wp.customize using jquery?
- How to use copy() function and paste file in /wp-content/themes directory
- How do I add a php statement to a jQuery string
- Can’t use get_results() in ajax query
- Admin-ajax.php appending a status code to ajax response
- Am I not understanding plugins?
- ajax_object is not defined when ajax calls the function
- Page Reloads Before AJAX Request Finishes
- Add htaccess rules with insert_with_markers at beginning of htaccess
- Ajax return code 400
- Insert array data on plugin activation
- combine Code 1 with Code 2
- Adding Default Settings to Theme My Login plugin
- ajax, right way to do it and make it works?
- Automated Cart Update With Alert Box Each Time
- WooCommerce/WordPress: how hide entire table form after submit (Admin Dashboard)?
- How to sanitize any integer input field in wordpress?
- filter default query to show just selected level of child pages in wordpress
- Adding widgets to my plugin page instead of WordPress dashboard
- How to insert data into database using wp cron job
- Setting value of session with Ajax not working
- Click a radio button must set textfield value
- Access Child Class of Plugin Main Class Instance
- WordPress Ajax Call inserting data but success response false
- How can i display a jquery slide on front page
- Unset session variable on page reload / setup but exclude AJAX
- Change product_base programmatically
- WordPress shortcode returns the data before
- Plugin development and composer
- Set default Database Storage Engine when creating tables with plugins?
- custom post type with role Vendor
- what does $options = get_option(‘test_theme’); do?
- Validating an email input from form field before submit using JQuery, AJAX, and PHP
- Custom html/php/jquery map code in WordPress/elementor?
- How to change basename url for wp-admin?
- How to check a variable Changes
- Only the first image uploads
- Illegal string offset checkbox
- Custom plugin: how do I call a PHP file if settings option is set to true?
- Trying to use a variable to set image width
- Customize the “Available for back order” text for specific variation
- If user has clicked link add class and store using PHP/WordPress
- How to identify which php file a plugin is using on page load?
- dashboard widget form not submit mails
- How can i send id of the currently posted form data through json response in custom wordpress plugin?
- How to give custom roles the capability to edit one Menu instead of every Menu
- Cannot successfully execute AJAX script to call function.php specific function. Using XAMPP localhost to test
- How to create an Email Subscription input in WordPress?
- Styling a specific post after hovering over it
- Deny php execution in /wp-includes – using .htaccess in /wp-includes VS root folder
- Remove item from post_meta array via AJAX
- add menu page in loop menu order
- PHP array to jQuery array ” Uncaught SyntaxError: Unexpected token < "
- Private messaging – Getting and displaying the avatar/url of a message recipient
- wordpress ajax pagination
- widget: input the px value from user and use it as inline style in widget function
- AJAX Not Working With WordPress Database properly
- Custom post type single page return to listing page
- 500 (Internal Server Error) of external php file
- Use jQuery and AJAX to get HTML
- Dynamic Gallery
- Missing items on page
- WordPress rewrite question
- Using Nonce for my Form
- Create new folder and upload files to custom folder via wp_handle_upload
- jQuery vs. $ – Creating jQuery scripts in JavaScript in WordPress using External Libraries
- Loading a post’s content, into a div outside the loop, when it’s title is selected in a list
- Cannot get custom javascript to execute on page
- SHARING TO FACEBOOK – FROM DYNAMICALLY GENERATED PAGE
- Pass a PHP variable (loop-audio.php) to jQuery function (js/script.js)
- Custom taxonomy with page post type – WordPress
- Query posts by custom taxonomy slug in WP REST API?
- oneOf JSON Schema validation not properly working for custom post meta value?
- get_post_meta returns on side but it doesn’t return on bottom of admin page
- Translate string in another langage than Locale
- Custom rest fields not loaded in rest api cpt response