Catrope has uploaded a new change for review. https://gerrit.wikimedia.org/r/200486
Change subject: Work around IE link paste bug ...................................................................... Work around IE link paste bug IE tries to restore the appearance of links when they are being pasted in a place where different CSS applies. If text-decoration: none; applies to the paste target, link content will be wrapped in <u> tags, and if a different link color applies, link content will be wrapped in <font color="#0066cc"> tags. To prevent this from happening, explicitly apply the default text-decoration and color styles to the paste target so IE will refrain from mangling links this way. Change-Id: I2b07aa934d804735316e9e736f5b25430786b1e2 --- M src/ce/styles/ve.ce.Surface.css 1 file changed, 6 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/VisualEditor/VisualEditor refs/changes/86/200486/1 diff --git a/src/ce/styles/ve.ce.Surface.css b/src/ce/styles/ve.ce.Surface.css index a41ced4..03277c5 100644 --- a/src/ce/styles/ve.ce.Surface.css +++ b/src/ce/styles/ve.ce.Surface.css @@ -65,6 +65,12 @@ height: 1px !important; } +/* Prevent IE from wrapping link text in <u> and <font color> tags */ +.ve-init-target-ie .ve-ce-surface-paste a { + text-decoration: underline !important; + color: #0066cc; +} + /* MediaWiki PHP Parser does not wrap text inside image captions in <p> but we do (cause we have to). * Let's make those <p> looks like they are not there by proper CSS styling. */ -- To view, visit https://gerrit.wikimedia.org/r/200486 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2b07aa934d804735316e9e736f5b25430786b1e2 Gerrit-PatchSet: 1 Gerrit-Project: VisualEditor/VisualEditor Gerrit-Branch: master Gerrit-Owner: Catrope <roan.katt...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits