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]
- Show/Hide text after the first paragraph
- Enqueue javascript that inserts custom php widget into jQuery-constructed div
- How to specify url for ajax call in wordpress plugin
- Retrieve customizer value using ajax or customizer api and print the value in theme
- Uncaught TypeError: Cannot read property ‘ajax’ of undefined
- How to add jQuery script?
- search in jquery mobile returns blank page
- Possibility of creating a folder in the wordpress root install and installing a file there, all via plugin?
- Displaying contents of a tab
- Disable drag metaboxes, create many functions using js not to work!
- owl carousel not working after ajax load [duplicate]
- WordPress version for this autocomplete jQuery code
- Call admin ajax using absolute url? Relative URL breaks (frontend ajax)
- value not saving in the form when dynamically creating an input
- why does included jquery always cause problems
- Create thumbs/gallery from custom fields
- jQuery post method in admin menu
- Output html source tags inside shortcode
- How to deregister scripts all at once
- Local version of jquery not working right
- Using jQuery DataTables and yadcf
- Load more button
- All post attachments in gallery grid to full screen slideshow?
- Ajax Request with jQuery not happening
- :first-child applying to all links [closed]
- In the Edit Post page how do I modify with jQuery the status select list?
- Dynamic image grid gallery
- Ajax autocomplete based on usercode
- Add php function into .js file (for tinyMCE button)
- Variable not being returned from Ajax Javascript (though javascript receives it)
- wordpress plugin setting page not enqueueing jquery?
- jquery not working correctly in plugin options page?
- Responsive framework – edit child js
- Bootstrap with Flexslider jQuery Issue
- TinyMCE strips content while pasting. Possibly a bug
- Page keeps refreshing with Ajax form
- jQuery AJAX add json2 dependency?
- jQuery does not appear to be enqueued on static homepage
- Can’t figure out why a jquery file is not loading!
- jQuery infinite scroll and pagination styling in wordpress
- Is it necessary to use a WordPress nonce when allowing users to download public data?
- Scripts only working on home page
- Uncaught TypeError: Object [object Object] has no method ‘dialog’
- Running javascript in a child theme. Works in jsfiddle
- Object [object Object] has no method ‘slides’
- How to block action if post is “dirty”?
- $ not defined using jQuery in WordPress
- Check with jQuery value of checkbox from custom admin panel
- Console shows ReferenceError: jQuery is not defined, no clue why!
- JS script not being included [closed]
- How to update scrollbar when using Jetpack’s Inifnite Scroller?
- Group posts by weekly or monthly
- Clear custom field when new tag is added
- Jquery script not loading on site Front page
- Trying to override/intercept a PhotoMosaic gallery link in WordPress using jQuery
- Customize wp-admin form custom fields
- How to respond with WP_Ajax_Response();
- How to read the contents of single post through RSS feed
- jquery issue in functions.php
- JQuery multiple toggle values
- JS plugin script loading but not working
- WP Calendar Shortcode not working on my theme
- How to pass more information though separate post keys via AJAX
- Passing a location-dependent array via wp_localize_script within a shortcode
- jQuery Ajax / Modal admin event not firing since 3.6. Seems to not recognize “a” tag
- Cannot echo a JS variable to a jQuery plugin coming from wp_localize_script
- slide change on hover with nextgen scrollgallery [closed]
- Auto Select Child categories on Multiple Dropdown – Jquery
- Hide input field when second input field is in focus