Support » Plugin: Print-O-Matic » IE only prints first of selected targets

  • Resolved jwveldhuis

    (@jwveldhuis)



    Example:

    <div class="print">1</div>
    <div class="print">2</div>
    [print-me target=".print"]

    Only prints <div class="print">1</div> (the first of the array of matched target elements).

    Solution that works for me in IE11:

    else if ( ua.indexOf("Trident/") != -1) {
                             // loop over all matched targets, otherwise only first tree is printed
                             jQuery( target ).each(function(){
                                var s = jQuery(this).clone().html();
                                //console.log(s);
                                jQuery(w.document.body).append(s);
                            });
                    }

    https://wordpress.org/plugins/print-o-matic/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Baden

    (@baden03)

    thank you! yes, we are reworking the way we handle IE completely… We have been focused on Edge at the moment, but we’ll look into IE 11 as well and push out an update (first on GitHub) and then here.

    Again, thank you for the feedback!

    Plugin Author Baden

    (@baden03)

    You can try update 1.7.5a available on GitHub.
    While IE 11 has issues with appending multiple cloned elements into a new window, Edge has issues appending cloned nested elements in general. If the 1.7.5a workaround addresses the IE 11 issue, great! The Edge issue, however, is a known bug, and will take more time to hack up yet-another IE version workaround.

    Plugin Author Baden

    (@baden03)

    Any luck with the update?

    Plugin Author Baden

    (@baden03)

    Issue marked as resolved.

    Sorry for the late reply, but yes it worked fine.

    Plugin Author Baden

    (@baden03)

    Good to know, thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘IE only prints first of selected targets’ is closed to new replies.