switchEditors is written only to handle request between html, tmce, tinymce options. It’s no luck to extend it functionality. Better use of jQuery events like $(el).on(‘click, … )
// WP 3.8 build
You can extend standard WordPress function in order to make some custom functionality like this:
(function ( $ ) {
"use strict";
$(function () {
window.switchEditors.go = function( id, mode ) {
return false;
};
});
}(jQuery));
Related Posts:
- Add Item to Custom TinyMCE Menu
- Close TinyMCE plugin window on click away
- Popup box when Clicking on Insert into post button in wordpress
- wordpress 4.4 upgrade visual editor bullets select for not selected elements
- WordPress Visual Editor Stripping HTML Changes
- Reset Undo on the tinymce editor
- Instantiate TinyMCE via JS ( rather than PHP/wp_editor )
- TinyMCE Button to Insert Multiple Lines of Text?
- TinyMCE in a div / textarea on frontend?
- How to wrap the content of the main tinyMCE editor with extra tags
- Making a custom widget that includes a tinymce and works in Site Origin Page Builder
- Instantiate TinyMCE via JS ( rather than PHP/wp_editor )
- Insert shortcode in post editor from javascript (Visual / HTML)
- Add tinymce dynamically via Javascript
- Listbox return wrong value in WordPress 3.9
- Using wp_editor in TinyMCE WindowManager dialog
- Strange gibberish JavaScript in Editor – site hacked?
- Trouble adding JavaScript in visual editor (Sharpspring embed code)
- Make TinyMCE checkbox that returns a value instead of true/false
- TypeError: window.tinyMCE.execInstanceCommand is not a function
- Where is the WP auto-save draft JavaScript?
- Custom wp.editor.initialize settings ignored
- JavaScript && operator in visual editor
- How to set callback to execute after all the tinyMCE editors have been initialized?
- Adding and removing hidden buttons from WordPress Customizer Tinymce widget editor using javascript API
- WP TinyMCE (Full + media ) – 4.8 JS Init Dynamicly
- Tinymce.js editor in Chrome?
- How to reference TinyMCE body in my script
- disable tags on wordpress text editor
- How to stop javascript code being broken when going into visual editor
- TinyMCE Javascript URL Question
- VisualComposer/WPBakery Page Editor: Is any JS event triggered after the Edition pop-in is shown?
- Dynamically write in editor with Javascript
- How to use value from modal tinymce windowManager?
- WordPress 4.2 mce-views migration guide?
- How to integrate a different (JavaScript) editor in WordPress?
- Google reCAPTCHA V3.0 not working. “ERROR for site owner: Invalid key type”
- Javascript split regex question
- Find object by id in an array of JavaScript objects
- How fix ‘Failed to load resource: the server responded with a status of 403’?
- How do I empty an array in JavaScript?
- JavaScript TypeError: Cannot read property ‘style’ of null
- Usage of the backtick character (`) in JavaScript
- Why is using “for…in” for array iteration a bad idea?
- Parsing a string to a date in JavaScript
- Number converted in 1e+30
- XML Parsing Error: no root element found Location in Console FF
- TypeError: app.use() requires middleware functions
- “.addEventListener is not a function” why does this error occur?
- Obtain form input fields using jQuery?
- Npm install cannot find module ‘semver’
- How to download a file with Node.js (without using third-party libraries)?
- Getting current date and time in JavaScript
- jQuery make global variable
- Mixed Content Page: requested an insecure stylesheet error
- Open URL in new window with JavaScript
- Read XML file using javascript
- Load Image from javascript
- Most efficient method to groupby on an array of objects
- Don’t make functions within a loop [duplicate]
- Difference between ?:, ?! and ?=
- How to change the text of a label?
- How to check ‘undefined’ value in jQuery
- Detecting arrow key presses in JavaScript
- Data column(s) for axis #0 cannot be of type string in google chart dashboard [duplicate]
- JavaScript – Count Number of Visitor for Website
- Jquery Value match Regex
- replace space with dash JavaScript
- How to make HTML element resizable using pure Javascript?
- how to use addHTML function in jsPDF
- Rock, Paper, Scissors, Lizard, Spock in JavaScript
- How to fix “TypeError: Right-hand side of ‘instanceof’ is not callable” when I use another module class?
- Change the selected value of a drop-down list with jQuery
- Uncaught SyntaxError: Unexpected token var
- window.location.href doesn’t redirect
- DeprecationWarning: Calling an asynchronous function without callback is deprecated. – how to find where the “function:” is?
- Custom “Uploads” Dir: “Edit Image” in Media Library broken
- Get loading state of wp data selector
- Adding a text element in between title and blocks container
- How to check if customize previewer is refreshing?
- TinyMce in WordPress – Getting the “fullscreen” button to stay on the right when customising button layout
- Remove type attribute from script added by wp_localize_script
- Google Map iframe in a tab issue
- Getting selected (highlighted) html from the Visual Editor on Edit Post page?
- WordPress Admin Not Loading All Core Scripts
- How to return div with custom attributes(Coding a Gutenberg Block)
- Problem with JavaScripts addition in WordPress
- JQuery not loading
- How to display post content in the block editor
- Uncaught TypeError: jQuery(…).slider is not a function
- WordPress update_user_meta onclick button with Ajax
- Inherit scripts from parent to childtheme
- WordPress wp_enqueue_script only adds text to top of page source
- how to let users upload their custom cover image
- how to use nimble-API and Display data?
- Create new product with woocommerce REST API with javascript (clientside)?
- Get current day using javascript [closed]
- dropdown does not work [closed]
- Passing object to FormTokenField suggestions
- How to Update a variable even if the web page reloads in js