Skip to content

Commit

Permalink
Merge pull request #2885 from tvdeyen/fix-tinymce-link-plugibn
Browse files Browse the repository at this point in the history
fix(alchemy_link.plugin): Avoid getting an absolute URL
  • Loading branch information
tvdeyen authored May 23, 2024
2 parents a1e0391 + af84b09 commit 8813e4d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ tinymce.PluginManager.add("alchemy_link", function (editor) {
const anchor = getAnchor(editor.selection.getNode())
if (anchor) {
link = {
url: anchor.href,
url: anchor.getAttribute("href"), // avoid getting an absolute URL
title: anchor.title,
target: anchor.target,
type: anchor.className
Expand Down

0 comments on commit 8813e4d

Please sign in to comment.