TinyMCE Advanced
Advanced link - javascript popup - preset of scrollbar position (3 posts)

  1. clavans
    Posted 4 years ago #

    I am using TinyMCE and advanced link with javascript popup, see example link on top of this page:

    By default the popup window has its scrollbars to the very left and top. Is it possible to preset how much the vertical scrollbar should be scrolled down (for instance 100 pixels down from the top) when the new window pops up?

    The idea is to have a popup window that is "zoomed in" to a certain interesting area on a web page and in this way avoid for instance commercial ads on the rest of the page. In my example link, I want to avoid the publicity on the top and only have the interesting part with the weather forecast in a popup window. Perhaps some settings can be done under the tab "Advanced"?



  2. Andrew Ozz
    WordPress Dev
    Plugin Author

    Posted 4 years ago #

    There is a way to do that but it requires some extra JS. On loading the popup iframe you can tell the browser to scroll it with scroll(0, 100);.

  3. clavans
    Posted 4 years ago #

    Where can I add the code
    scroll(0, 100)?
    Perhaps under the tab "Advanced" somewhere?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • TinyMCE Advanced
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic