summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2015-11-12 13:10:36 (GMT)
committerNathaniel Catchpole2015-11-12 13:10:36 (GMT)
commitff9845ae71c2ff2fecb2d11a29d6b95e307c061c (patch)
tree9f35f7fe3ad146f389ba90cbd51fe60922e07f7d
parentb59c94a4f00ba3d32abe1b7af59683f57b0f3c2b (diff)
Issue #2608722 by DuaelFr: Follow-up for #2590403: Remove forgotten references to the target attribute in the drupallink CKEditor plugin
-rw-r--r--core/modules/ckeditor/js/plugins/drupallink/plugin.js11
1 files changed, 2 insertions, 9 deletions
diff --git a/core/modules/ckeditor/js/plugins/drupallink/plugin.js b/core/modules/ckeditor/js/plugins/drupallink/plugin.js
index dfb7c87..1717971 100644
--- a/core/modules/ckeditor/js/plugins/drupallink/plugin.js
+++ b/core/modules/ckeditor/js/plugins/drupallink/plugin.js
@@ -16,8 +16,7 @@
allowedContent: {
a: {
attributes: {
- '!href': true,
- 'target': true
+ '!href': true
},
classes: {}
}
@@ -97,11 +96,6 @@
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;
@@ -150,8 +144,7 @@
allowedContent: {
a: {
attributes: {
- '!href': true,
- 'target': true
+ '!href': true
}
}
},