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]
- Should I use spl_autoload_register() in my plugin?
- How can I save a multiple select array with the settings API for a plug-in options page?
- Add a class to links in the visual editor (how to get old dialog back)
- Shortcode to insert
- add_meta_boxes action with refresh on save
- Bulk Image upload and one image for each post?
- Infinite-Scroll Plugin and Jetpack Infinite Scroll Plugin – Adding to “Thoughts” Theme
- Resize Image without cropping
- Custom plugin issue when trying to use the shortcode twice on a page [closed]
- When is is_admin() available?
- Hiding WordPress Plugin Source Code
- How to speed up admin-ajax.php in wordpress
- jQuery .each to get post meta and subtract from a sum
- How do i use this jquery script on a wordpress site?
- wp_loaded hook block script enquequing
- hover image appears below placeholder instead of overlayed
- Custom filter in admin edit custom post type responding with invalid post type?
- How to find error in my code when the error message is pointing to WP core file?
- How to access global variable $menu inside a class function
- How to upload a file to a folder named after the user_id via plugin
- developing a wordpress plugin, have a few PHP Woocommerce related coding questions
- AJAX pagination, update current page
- Change tinyMCE editor to allow marked content when pasting from Word
- What exactly do this function declared into functions.php file of a WP theme?
- Pull GetOption() variable into jQuery dynamically created html
- How to use html inside a functions.php code?
- Error – ‘create_function is deprecated’ [closed]
- WordPress Environment: Dynamic Page using shortcode – how to change the page name for sharing
- Extend Woocommerce Widget Class – WC_Widget_Product_Categories
- plugin add action hook is not working :
- Double jQuery loaded
- Trying to prepend a Hashtag symbol to the_tags links [closed]
- zip unzip attachments in wordpress
- wordpress admin plugin menu custom css
- how to Update 15k products on plugin activation with meta_option
- Ajax search shows all results when user empties input?
- Why i can’t get custom fields value or post ID via Ajax?
- Get uploaded image and attach it to the new post
- Hooks for post saving make a post-new.php to load latest post’s data
- Admin-ajax php not working on new wordpress version
- Adding Additional Variables on Menus Page
- Add a counter for mouseovers (custom field)
- Accessing an API with jQuery and AJAX
- Unexpected token ILLEGAL, even on clean install – jquery-issue?
- Using flickr api in custom wordpress plugin
- Toolbar Hidden in a Virtual Page
- Admin Menu new tab external link
- How to correctly escape an echo
- Adding image upload in tag section – WordPress plugin development
- How to Remove Theme Style CSS inside Custom Plugin?
- Creating plugin with front-end pages
- How to Send Pingbacks for all Posts in WordPress?
- Add other class content with reference class value
- Ajax result show in console if is called outside function and not showing in array
- How can I update the price when someone enters postcode or zip code in woocommerce checkout page?
- 400 bad request admin-ajax file upload
- get Woocommerce product format json for WP_Query
- How to use wp_editor and save its data in wp_posts table
- wp_ajax_ 400 Bad Request
- update_post_meta Not Processing Array Data (Not Sure What I Am Missing)
- How do I remove an action hook inside a class that is called by another class?
- The plugin generated 225 characters of unexpected output during activation
- How to call a function from functions.php with ajax?
- Parsing webhook from Shopify in WordPress
- Submit to itself don’t work
- WordPress / PhpStorm / XDebug and plugin_dir_path issues
- Using Custom Javascript and pHp to send email to myself when a user clicks on an input button but only works on Chrome, IE, and Micorosft Edge
- Send data from plugin to external database
- ajax form with multiple submit buttons and values
- Adding unique marketing messages between certain products whilst using isotope/Infinite Scroll
- Pass php to database in JQuery: With AJAX?
- See output of a sql query while plugin installation in wordpress
- Trying to fix multiple category drop down
- ajax form function error
- ACF repeater image in video poster with jquery
- base64_encode conflict with convert_smilies in wordpress
- Properly process a custom WP REST API request (Authenticate, Authorize + Validate)?
- Login user into magento using wordpress account
- Customize create table SQL statement in any WordPress plugin