Looking though the existing plugins, the standard tinymce way to do this is to save the popup window in a win
variable:
{
text: 'Vídeos',
onclick: function() {
var win = editor.windowManager.open({ //etc
And then use win.find('#name')
to target the control, eg:
{type: 'listbox',
name: 'video_site',
onselect: function( ) {
var autoplay = win.find('#video_autoplay');
if (this.value() == 'vine') {
autoplay.disabled(true);
autoplay.value('');
} else {
autoplay.disabled(false);
}
},
Related Posts:
- How to add shortcode to show/hide press releases?
- tinymce is not defined when not using wp_editor
- Creating Multiple wp_localize_script for Shortcode?
- Add tinymce buttons to caption textarea in media uploader
- Add custom shortcode button to Editor
- How to get a jQuery script to run on a page?
- call shortcode in javascript
- Hacking TinyMCE for better usability (shortcodes and html)
- Including javascript for a shortcode
- Localize variable for multiple Shortcodes
- TinyMCE – TypeError: r is undefined
- How to enable the content editor as a droppable target with jQuery-ui?
- Creating multiple enclosing shortcodes and fixing JS issues on click
- TinyMCE 4 remove/add attributes for all images
- WP UI style within shortcode – Any Suggestions?
- Why Won’t my jQuery Play Nice with WordPress?
- Reload wordpress shortcodes
- TinyMCE plugin won’t work with jQuery 3.5.1 (testing with “Test jQuery Updates”)
- Dynamicaly update field created with wp_editor()
- include shortcode values in Thickbox form
- Populating shortcode values dynamically in theme template
- Nested Gallery Shortcode INTERMITTENTLY working
- How do I use jQuery to add the TinyMCE WYSIWYG editor to a textarea?
- Change shortcode value by jquery in WP Editor
- echo do_shortcode for Contact Form 7 from within dynamically loaded php file
- Visual editor popover or placeholder
- Uncaught TypeError: undefined is not a function (shortcode-box)
- Append jquery script for each [partners] shortcode with specified values
- Sorting UL Listing Within the TinyMCE Visual Editor in WordPress
- Create a short code that inserts js
- jQuery not working for tabs shortcode [closed]
- JavaScript error (Uncaught SyntaxError: Unexpected end of input)
- How do you select a particular option in a SELECT element in jQuery?
- My javascript is returning this error: $.ajax is not a function
- jQuery: How can I create a simple overlay?
- Invalid or unexpected token on a very simple function
- How to make Bootstrap carousel slider use mobile left/right swipe
- How to get a cross-origin resource sharing (CORS) post request working
- Adding a page loader using jQuery
- jquery – return value using ajax result on success
- How can I change CSS display none or block property using jQuery?
- Can you detect “dragging” in jQuery?
- Twitter Bootstrap Modal Form Submit
- How to overwrite a JavaScript core function?
- Automatically decrease font size for long words
- Custom function to rearrange attachments when creating posts – Almost there
- $wp_customize customizer_preview_init not firing inside javascript
- Tinymce shortcodes within shortcode contents
- How wp_enqueue_script works?
- Basic ajax call in WordPress
- jQuery Validate wp_editor
- What are best practices for including jquery plugins
- wp_enqueue_scripts hook is not being called
- wp_ajax unauthenticated and authenticated
- ‘jQuery is not defined Error’ appearing in load-scripts.php
- Firebug : Problem with jQuery in WordPress admin panel
- JSON output returns page source code [closed]
- How to type shortcode-like text in WordPress TinyMCE visual editor?
- Display data on same page as form without refresh
- Problem with tables (huge data) on Word-press site
- Gravity Forms – jQuery in List Field [closed]
- Dropdown filtering extremely slow
- Fall Back Google CDN in JavaScript
- wp_enqueue doesn’t work
- filterable portfolio with wordpress and jquery
- Trouble enqueueing jquery with custom theme
- WP-admin redirects to login after adding SSL certificate
- add custom HTML css with js doesn’t work
- WordPress Rotating Background Images
- Change quantity via jQuery and disabile quantity field [closed]
- Trying to Load jQuery
- Get value of selected option in select field in a WordPress form
- jQuery – Toggle megamenu submenu items by click
- General Settings: display custom plugin field after Site Address field
- WordPress Insert not working with ajax
- WP AJAX API with JS file
- Is there a good way to load tiny_mce_popup.js through editor.windowManager.open?
- need to override function in jquery.ui.datepicker.js
- Can user meta be shown or hidden depending on user logged in status?
- Is there some jQuery conflict here?
- Dynamic WordPress editor in meta box
- Theme has superfish – how to add supersubs?
- How to modify iFrame content in an admin thickbox
- Storing current page WP list table HTML data into a PHP variable
- Using wp_editor() when not logged stopped working
- bundled jquery in theme js not working with wp_localize_script
- How to toggle custom WP archive list
- I can’t enqueue Suggest.js in frontend – not added
- Jquery code won’t run loaded from WP, but run from console
- WordPress and Raty.js
- JQuery is not defined but jquery script is loaded in source [closed]
- search in jquery mobile returns blank page
- owl carousel not working after ajax load [duplicate]
- jQuery post method in admin menu
- jquery not working correctly in plugin options page?
- jQuery AJAX add json2 dependency?
- How to read the contents of single post through RSS feed
- jQuery Ajax / Modal admin event not firing since 3.6. Seems to not recognize “a” tag
- WordPress video end function [duplicate]
- Sliders with buttons [closed]