Last modified: 2013-12-14 01:14:33 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T60241, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58241 - VisualEditor: Template is getting pasted as a table while doing copy-paste
VisualEditor: Template is getting pasted as a table while doing copy-paste
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
ContentEditable (Other open bugs)
unspecified
All All
: High normal
: VE-deploy-2013-12-12
Assigned To: Ed Sanders
:
Depends on:
Blocks: ve-richpaste
  Show dependency treegraph
 
Reported: 2013-12-09 22:44 UTC by Rummana Yasmeen
Modified: 2013-12-14 01:14 UTC (History)
11 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Table format in destination page (96.14 KB, image/png)
2013-12-09 22:44 UTC, Rummana Yasmeen
Details
The edit source section for the destination page (40.22 KB, image/png)
2013-12-09 22:46 UTC, Rummana Yasmeen
Details
tooltip and yellow bordered box (170.48 KB, image/png)
2013-12-09 22:52 UTC, Rummana Yasmeen
Details

Description Rummana Yasmeen 2013-12-09 22:44:27 UTC
Created attachment 14041 [details]
Table format in destination page

Steps to reproduce:

1.Open the editor.
2.Copy a template with a parameter which has a value and paste it into a different page
3.Copy a template which does not have any parameter  and paste it into a different page
4.Copy a template with a parameter which does not have any value.


Observed Result:


1.All the template copied are getting pasted as a table
2.If you switch to the edit source you will see :

the template copied in step 2 has a table format
the template copied in step 3 is getting pasted in an empty template wikitext format:{|
!
|}

the template copied in step 4 is getting pasted in a template wikitext format with the page name inside it:{|
!Copy
|}
Comment 1 Rummana Yasmeen 2013-12-09 22:46:35 UTC
Created attachment 14042 [details]
The edit source section for the destination page
Comment 2 Rummana Yasmeen 2013-12-09 22:51:28 UTC
After pasting a template, which has parameter with no value, it does not let user to edit that template on the edit mode.
and shows a tooltip "Sorry this element can be edited in source mode now" with yellow bordered box.

See the screenshot attached
Comment 3 Rummana Yasmeen 2013-12-09 22:52:08 UTC
Created attachment 14043 [details]
tooltip and yellow bordered box
Comment 4 Ed Sanders 2013-12-10 20:30:43 UTC
Can you give a more specific example. The templates I'm testing on copy and paste okay.
Comment 5 Rummana Yasmeen 2013-12-10 20:59:24 UTC
For an example
if you go to this page :http://en.wikipedia.beta.wmflabs.org/w/index.php?title=Paste

I have copied three templates from http://en.wikipedia.beta.wmflabs.org/wiki/Copy
and they are having these issues.
Comment 6 Gerrit Notification Bot 2013-12-11 11:05:29 UTC
Change 100775 had a related patch set uploaded by Esanders:
Fix issues with copy-pasting MWTransclusionNodes

https://gerrit.wikimedia.org/r/100775
Comment 7 Gerrit Notification Bot 2013-12-12 00:45:36 UTC
Change 100775 merged by jenkins-bot:
Fix issues with copy-pasting MWTransclusionNodes

https://gerrit.wikimedia.org/r/100775
Comment 8 Gerrit Notification Bot 2013-12-12 00:56:52 UTC
Change 100943 had a related patch set uploaded by Catrope:
Fix issues with copy-pasting MWTransclusionNodes

https://gerrit.wikimedia.org/r/100943
Comment 9 Gerrit Notification Bot 2013-12-12 00:57:03 UTC
Change 100943 merged by Catrope:
Fix issues with copy-pasting MWTransclusionNodes

https://gerrit.wikimedia.org/r/100943
Comment 10 James Forrester 2013-12-12 01:06:23 UTC
(And back-ported to wmf6.)
Comment 11 Rummana Yasmeen 2013-12-14 01:14:33 UTC
verified in production:https://en.wikipedia.org/wiki/User:RYasmeen_(WMF)/13th_december

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links