Featured Post

Organize and rename photos by EXIF data with PowerShell

This PowerShell script organizes and renames all photos in a selected folder using EXIF data. It will also create thumbnails of the images i...

Thursday, June 26, 2014

Prevent jQuery UI dialog from blocking TinyMCE focusin

Including a TinyMCE textarea inside a jQuery UI dialog I found that I could not click or bring focus to the field in order to type in it.

A quick JavaScript solution directly from TinyMCE:


<script>
    // Prevent jQuery UI dialog from blocking focusin
    $(document).on('focusin', function(e) {
        if ($(event.target).closest(".mce-window").length) {
            e.stopImmediatePropagation();
        }
    });
</script>

No comments:

Post a Comment