Skip to content
Snippets Groups Projects
Commit 79b57a95 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2093077 by Wim Leers: Fixed target attribute is set to '0' when...

Issue #2093077 by Wim Leers: Fixed target attribute is set to '0' when creating a link without checking the 'Open in new window' checkbox.
parent 7b5109dd
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,11 @@ CKEDITOR.plugins.add('drupallink', {
range.selectNodeContents(text);
}
// Ignore a disabled target attribute.
if (returnValues.attributes.target === 0) {
delete returnValues.attributes.target;
}
// Create the new link by applying a style to the new text.
var style = new CKEDITOR.style({ element: 'a', attributes: returnValues.attributes });
style.type = CKEDITOR.STYLE_INLINE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment