Santhosh has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/202681

Change subject: Remove highlighting classes before saving the translation
......................................................................

Remove highlighting classes before saving the translation

Bug: T95394
Change-Id: I03104c14c6cbf86f30e1086d163213ee1fced01a
---
M modules/draft/ext.cx.draft.js
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation 
refs/changes/81/202681/1

diff --git a/modules/draft/ext.cx.draft.js b/modules/draft/ext.cx.draft.js
index bb749ae..fe2e8f6 100644
--- a/modules/draft/ext.cx.draft.js
+++ b/modules/draft/ext.cx.draft.js
@@ -218,6 +218,10 @@
                        .remove();
                // Remove placeholder sections
                $content.find( '.placeholder' ).remove();
+               // Remove all highlighting before saving
+               $content
+                       .find( '.cx-highlight, .cx-highlight--blue, 
.cx-highlight--lightblue' )
+                       .removeClass( 'cx-highlight cx-highlight--blue 
cx-highlight--lightblue' );
                return $content.html();
        }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/202681
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I03104c14c6cbf86f30e1086d163213ee1fced01a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to