-
-
Notifications
You must be signed in to change notification settings - Fork 631
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
Using the movable style in iframe will be inserted externally #932
Comments
okay, i'll fix it soon. |
@daybrush I probably will have to use iFrame for my implementation. Will you be able to give us a CodePen Example after the fix? |
I'll let you know after fix. My predictions are: const iframeDocument = document.querySelector("iframe").contentDocument;
const container = iframeDocument.querySelector(".container");
const moveable = new Moveable(container, {
}); |
@daybrush The internal iframe uses the selectEnd event of selectoRef to set the moveableRef. target. Dragging will cause it to stutter, making it easy to watch together |
moveable's new version is released. Try it. ([email protected]) iframe example: https://codepen.io/daybrush/pen/BaGBKzK |
So awesome! ! I'll try it later |
Tested without problems. Thanks again to the author @daybrush |
Environments
Description
I want to implement drag and drop of sub elements within the iframe, but I found that styles are inserted outside the iframe, resulting in ineffective styles
The text was updated successfully, but these errors were encountered: