wysiwyg-editor icon indicating copy to clipboard operation
wysiwyg-editor copied to clipboard

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

Open KlentyDhanush opened this issue 8 months ago • 0 comments

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.

KlentyDhanush avatar Jun 04 '24 10:06 KlentyDhanush