WordPress.org

Ready to get started?Download WordPress

Forums

Viper's Video Quicktags
Problem Using IE to Embed a Video (4 posts)

  1. Chrissy1784
    Member
    Posted 1 year ago #

    I'm having an issue with this plugin that when using IE, no matter where in a post I attempt to embed the video, after I hit okay, the shortcode is placed at top of the post.

    I am not having this problem in Chrome or Firefox. Unfortunately, having this work in IE is necessary and it isn't as easy as just using another browser.

    http://wordpress.org/extend/plugins/vipers-video-quicktags/

  2. Jason Lemahieu (MadtownLems)
    Member
    Posted 1 year ago #

    I've confirmed this same behavior in Internet Explorer (and only IE).

    No matter where the cursor is in the post, the shortcode always gets inserted at the very beginning of the visual editor.

  3. Alex Mills (Viper007Bond)
    Moderator
    Plugin Author

    Posted 1 year ago #

    Internet Explorer is pretty crappy when it comes to retaining cursor position in textareas. There a bunch of IE-specific work-arounds to address this in WordPress.

    I believe I'm doing it correctly though:

    https://github.com/Viper007Bond/vipers-video-quicktags/blob/6.4.3/vipers-video-quicktags.php#L787

    But I will double check that I am (based on your reports, I am not) and refresh my code if necessary. I think there is a helper function provided by WordPress these days that does a better job than my code but I can't remember for sure off the top of my head. I do know that the editor API was overhauled recently though.

    Thanks.

  4. Jason Lemahieu (MadtownLems)
    Member
    Posted 10 months ago #

    Out of curiosity, is there a reason you've chosen your popup window method over just using ThickBox? It seems you'd be able to drastically cut down on the code required for your UI, while providing better IE support.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.