Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor selection and scroll jump at the end of iframe #2908

Closed
zmoky opened this issue May 11, 2016 · 2 comments
Closed

Cursor selection and scroll jump at the end of iframe #2908

zmoky opened this issue May 11, 2016 · 2 comments

Comments

@zmoky
Copy link

zmoky commented May 11, 2016

When embedding a iframe, after dragging and dropping the scrollbar near the iframe, the selection cursor jumps after the iframe ( the selection should be set previously to another location - for example: inside of a first paragraph ).

After this if you scroll anywhere on the page the scroll position jumps back to the end of the iframe where the cursor jumped previously.

There is an example that I tested directly in the demo editor at https://www.tinymce.com/

<p style="text-align: center; font-size: 15px;"><img src="images/glyph-tinymce@2x.png" alt="TinyMCE" width="110" height="97" /></p>
<p style="text-align: center; color: #7e7e7e; font-size: 15px; font-family: avenir; font-weight: 200;">TinyMCE is a platform independent web-based JavaScript HTML WYSIWYG<br /> editor control released as open source under LGPL.</p>
<p style="text-align: center; color: #7e7e7e; font-size: 15px; font-family: avenir; font-weight: 200;">&nbsp;</p>
<p style="text-align: center; color: #7e7e7e; font-size: 15px; font-family: avenir; font-weight: 200;"><iframe src="//www.youtube.com/embed/XHirn93DlfI" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe></p>
<p style="text-align: center; color: #868686; font-size: 15px; font-family: avenir; font-weight: 200;"><em>TinyMCE enables you to convert HTML textarea fields or other HTML elements to editor instances.</em></p>
<p>&nbsp;</p>```
@AboLojy
Copy link

AboLojy commented Oct 6, 2016

if i got this right i think i fixed this when i removed the body {position:relative;} , then it worked perfectly. i don't know what's the connection but it worked for me

@thedrjim
Copy link

This issue has been closed due to inactivity. Tiny will soon be working with members of the community to close other old issues on our GitHub repositories.

Please note the official support window for TinyMCE 4 is ending on December 31, 2020. If you haven't already upgraded to TinyMCE 5 it is highly encouraged that you do so. Upgrading will give you access to the latest releases and updates made to our WYSIWYG editor focused on bringing the latest UX and developer features into the editing experience. To assist with upgrading the editor we have put together a migration guide you can use here - https://www.tiny.cloud/blog/how-to-migrate-from-tinymce-4-to-tinymce-5/

If you have any questions or concerns, you can contact me at community-qa@tiny.cloud. You can also join the discussion on our mailing list at the following link: community-qa+subscribe@tiny.cloud.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants