Mglaser has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/365958 )

Change subject: VisualEditor: fix for cloning content of summary field on paste.
......................................................................

VisualEditor: fix for cloning content of summary field on paste.

and improved css styling

Change-Id: Ib4da2f733ceb702dec47430517fdd2302f00d0bc
---
M VisualEditor/resources/bluespice.visualEditor.css
M VisualEditor/resources/bluespice.visualEditor.js
2 files changed, 41 insertions(+), 9 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtensions 
refs/changes/58/365958/1

diff --git a/VisualEditor/resources/bluespice.visualEditor.css 
b/VisualEditor/resources/bluespice.visualEditor.css
index 0faf2ec..dd34269 100644
--- a/VisualEditor/resources/bluespice.visualEditor.css
+++ b/VisualEditor/resources/bluespice.visualEditor.css
@@ -92,41 +92,53 @@
 }
 
 #bs-ve-wpSummary {
-       height: 18px;
+       line-height: 1.5em;
+       height: auto;
        margin: 5px;
        margin-right: 0px;
-       padding-left: 3px;
-       padding-right: 3px;
+       padding: 0px 3px 0px 3px;
        background-color: white;
        color: black;
+       border: 1px solid #7a7a7a;
+       font-size: 0.938em;
+}
+#bs-ve-wpSummary:hover {
        border: 1px solid black;
-       border-radius: 3px;
 }
 
 #bs-ve-wpSave,
 #bs-ve-wpPreview,
 #bs-ve-wpDiff{
-       padding: 1px 5px;
+       line-height: 1.5em;
+       padding: 0px 8px;
        margin-top: 5px;
        margin-left: 5px;
        text-align: center;
        cursor: default;
-       border: 1px solid rgb(192, 192, 192);
-       border-radius: 3px;
-       background-color: rgb(240, 240, 240);
+       border: 1px solid #adadad;
+       background-color: #e1e1e1;
        font-size: 0.938em;
 }
 
 #bs-ve-wpSave:hover,
 #bs-ve-wpPreview:hover,
 #bs-ve-wpDiff:hover{
-       background-color: #e3e3e3;
+       background-color: #e5f1fb;
+       border: 1px solid #0078d7;
+}
+
+bs-ve-wpSave:active,
+#bs-ve-wpPreview:active,
+#bs-ve-wpDiff:active{
+       background-color: #cce4f7;
+       border: 1px solid #005499;
 }
 
 #bs-ve-mw-editform-cancel {
        padding: 5px;
        font-size: 0.938em;
        line-height: 2.5em;
+       margin-left: 8px;
 }
 
 #bs-editbutton-visualeditor {
diff --git a/VisualEditor/resources/bluespice.visualEditor.js 
b/VisualEditor/resources/bluespice.visualEditor.js
index ccbd843..b1425c8 100644
--- a/VisualEditor/resources/bluespice.visualEditor.js
+++ b/VisualEditor/resources/bluespice.visualEditor.js
@@ -214,3 +214,23 @@
 $( document ).on( 'keyup', '#wpSummary.wpSummary-active' , function(){
        $( '#bs-ve-wpSummary' ).val( $( '#wpSummary' ).val() );
 });
+
+$( document ).on( 'paste', '#bs-ve-wpSummary', function(){
+       $( '#wpSummary' ).removeClass( 'wpSummary-active' );
+       $( '#bs-ve-wpSummary' ).addClass( 'wpSummary-active' );
+});
+
+$( document ).on( 'paste', '#wpSummary', function(){
+       $( '#bs-ve-wpSummary' ).removeClass( 'wpSummary-active' );
+       $( '#wpSummary' ).addClass( 'wpSummary-active' );
+});
+
+$( document ).on( 'blur', '#bs-ve-wpSummary.wpSummary-active', function(){
+       $( '#wpSummary' ).val( $( '#bs-ve-wpSummary' ).val() );
+       $( '#bs-ve-wpSummary' ).removeClass( 'wpSummary-active' );
+});
+
+$( document ).on( 'blur', '#wpSummary.wpSummary-active' , function(){
+       $( '#bs-ve-wpSummary' ).val( $( '#wpSummary' ).val() );
+       $( '#wpSummary' ).removeClass( 'wpSummary-active' );
+});
\ No newline at end of file

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib4da2f733ceb702dec47430517fdd2302f00d0bc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: REL1_27
Gerrit-Owner: Mglaser <[email protected]>
Gerrit-Reviewer: Dvogel hallowelt <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to