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

Link edit popup is not visible when some style are applied this happens when iframe is enabled. #4789

Open
KlentyDhanush opened this issue Jun 4, 2024 · 0 comments

Comments

@KlentyDhanush
Copy link

Expected behavior.

Should edit link after some styles are applied to the link

Actual behavior.

(Describe actual behaviour here)
when the iframe is enabled after changing the text color , link edit popup doesn't appears. because there is check for fetching the link in the Froala link plugin get method,

if (s_el.tagName != "A" && !editor.node.isElement(s_el)) { var _editor$markdown; if ( editor.opts.**iframe** && (_editor$markdown = editor.markdown) !== null && _editor$markdown !== void 0 && _editor$markdown.isEnabled ) { s_el = null; } else { s_el = $(s_el).parentsUntil(editor.$el, "a").first().get(0); } } if (e_el.tagName != "A" && !editor.node.isElement(e_el)) { var _editor$markdown2; if ( editor.opts.**iframe** && (_editor$markdown2 = editor.markdown) !== null && _editor$markdown2 !== void 0 && _editor$markdown2.isEnabled ) { e_el = null; } else { e_el = $(e_el).parentsUntil(editor.$el, "a").first().get(0); } }

Steps to reproduce the problem.

Attaching the jsFiddle with iframe [jsFiddle] https://jsfiddle.net/m4zeu3xc/2/ , in this fiddle you can see that when clicked on my link , link edit popup is not visible.

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

No branches or pull requests

1 participant