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

Edit Link bugg when there is a iframe #1176

Open
Lumartic101 opened this issue Sep 2, 2024 · 1 comment
Open

Edit Link bugg when there is a iframe #1176

Lumartic101 opened this issue Sep 2, 2024 · 1 comment

Comments

@Lumartic101
Copy link

Lumartic101 commented Sep 2, 2024

Jodit Version: 4.2.5

Browser: Chrome
OS: Windows
Is React App: False
Reproduced on xdsoft.net: True

Code

<p><!-- --> <a href="https://www.gutenberg.org/cache/epub/55/pg55-images.html">The Wonderful Wizard of Oz</a> <em>by L. Frank Baum</em>.
</p>
<div style="padding:56.25% 0 0 0;position:relative;"><iframe src="https://player.vimeo.com/video/1002833698?badge=0&amp;autopause=0&amp;player_id=0&amp;app_id=58479" frameborder="0" allow="autoplay; fullscreen; picture-in-picture; clipboard-write" style="position:absolute;top:0;left:0;width:100%;height:100%;" title="Every Day's Like This"></iframe></div>
// A *self-contained* demonstration of the problem follows...

Expected behavior:
When editing a URL link within the editor, which also contains an iframe elsewhere, pressing "Update" after modifying the link (anchor tag a href) should successfully update the URL.

Actual behavior:
However, when an iframe is present anywhere in the editor, updating a link sometimes fails. Even though the link appears to be edited, inspecting the element reveals that the URL has not changed.

@junan-trustarc
Copy link

junan-trustarc commented Sep 16, 2024

I have same situation, editing url doesn't work at first time if there is iframe.
Second try works but always failing at first editing of link.
We can easily reproduce in jodit demo page.

  1. Add URL link
  2. Add Iframe(youtube video)
  3. Edit added URL and update text or URL and save (it won't save properly)

image

xdan added a commit that referenced this issue Oct 14, 2024
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

3 participants