Talk:VisualEditor/2015
Add topic| This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
This is not the place for bug reports about VisualEditor - those should go on the feedback page. |
Previous discussion was archived at Talk:VisualEditor/Archive 1 on 1 September 2015.
Open Access button
[edit]- there has been ongoing debate about using pay-walled references.
- is there thought of integrating the Open Access button into the "generate references" feature ?
- https://www.openaccessbutton.org/docs Slowking4 (talk) 15:55, 14 September 2015 (UTC)
- Interesting idea. What would such a button do? Replace the link with an OA version? Add it as an alternative/archive URL? Jdforrester (WMF) (talk) 01:52, 15 September 2015 (UTC)
- I think there would be an additional icon/link next to each reference. Each would be preloaded to send a query to OA Button inputting that citation information into an OA Button request for access. Ocaasi (WMF) (talk) 12:41, 20 September 2015 (UTC)
- That would be so cool. Ocaasi (WMF) (talk) 23:51, 14 September 2015 (UTC)
- yes, let's say you input a doi, and it gave you link to a paywall;
- is there a way to integrate an OA search in the generate function to also link to OA source? the doi field would link to paywall and url field link to OA source, per the template:cite journal on english
- or have a button / bot to search OA for existing references?
- a lot of coding, but it would go a way to counter criticism, by saying "we are minimizing paywalls by linking to all possible OA sources" Slowking4 (talk) 19:11, 26 September 2015 (UTC)
Disable VE for specified pages/categories?
[edit]Is there a way to specify that a page or category does NOT use VE? We have certain pages that are handled by Semantic Forms or are for other reasons not very VE-compatible, and we'd like to remove VE as an option for them. Jamesmontalvo3 (talk) 13:50, 6 October 2015 (UTC)
- I've wished for this myself, but VisualEditor cannot be disabled for (or enabled on) specific pages. It can only be configured per namespace. Whatamidoing (WMF) (talk) 18:01, 20 October 2015 (UTC)
- The VE edit link can be removed pretty easily with javascript by doing:
$("#ca-ve-edit").hide();- This is of course not ideal, but we may end up creating a small extension to allow certain categories, or pages with a particular magic word, not show the VE edit button. Jamesmontalvo3 (talk) 16:45, 26 October 2015 (UTC)
- But wouldn't that Javascript remove VisualEditor from all pages, rather than just the one? And if that's your goal, then why not just go to Special:Preferences and turn it off? Whatamidoing (WMF) (talk) 17:33, 27 October 2015 (UTC)
- That won't prevent veaction=edit from working. Alex Monk (WMF) (talk) 17:33, 26 October 2015 (UTC)
- @Krenair (WMF) Correct, that will not prevent VE from working. My need for this is simply not to put an "edit" link on a page where VE wouldn't be the optimal editor.
- @Whatamidoing (WMF) Yes, just that line would remove VE from all pages. Sorry, my intent was unclear. With additional logic you could do that just for pages you don't want VE (check for categories, check for magic words, etc). Jamesmontalvo3 (talk) 17:47, 30 October 2015 (UTC)
- Since you're talking about a private wiki, could you move the pages that VisualEditor doesn't handle well into a different namespace? Whatamidoing (WMF) (talk) 20:21, 30 October 2015 (UTC)
Word's Table pasting problem in VE
[edit]https://phabricator.wikimedia.org/T117859
Please help me and guide me I have 800+ table to put in sa.wikipedia. and this problem makes that work hard. ~ NehalDaveND (talk) 07:13, 9 November 2015 (UTC)
- This sounds like the problem reported with Excel at https://en.wikipedia.org/w/index.php?oldid=690522044#Copy_and_paste_table_using_VE Whatamidoing (WMF) (talk) 22:55, 13 November 2015 (UTC)
VE not loading big pages
[edit]I have a page on 9738 words and 73074 characters.
VE loads to 100% (pretty quickly) and stops there and nothing happens.
When I trimmed it down to around 50k characters it worked.
Sounds like there is a limitation somewhere that restricts this?
Any ideas? Blazyb (talk) 08:33, 16 November 2015 (UTC)
- Problem identified: It was a thumbnail that VisualEditor cannot parse. Why is that? Blazyb (talk) 10:46, 16 November 2015 (UTC)
- Error msg: https://gyazo.com/ea686db5756acd54aa5d2677c431317c Blazyb (talk) 11:14, 16 November 2015 (UTC)
- Hi @Blazyb. Is this on a private wiki? Is the image present on the local wiki, or pulled from somewhere else? Whatamidoing (WMF) (talk) 18:38, 16 November 2015 (UTC)
- Yes, this is a private wiki. The image is present on the local wiki yes, it is uploaded through the "Upload file" page. And checking the images folder I can see the files there. Blazyb (talk) 08:33, 17 November 2015 (UTC)
- Hey Blazyb did you found a solution?
- My VE is loading as well but stops at 100%.. But only in Pages with Images 77.59.199.130 (talk) 09:01, 14 January 2016 (UTC)
- I got the same error. Anyone have a solution?
- Thanks! Maalab (talk) 15:05, 11 January 2017 (UTC)
- I have discovered something. Our Wiki is in french. If i put this in my LocalSettings.php, it work : $wgLanguageCode = "en";
- I have not find a solution to use it in french. Maalab (talk) 15:45, 11 January 2017 (UTC)
- Maalab, can you please tell me more about your config? Also, what version are you using for VisualEditor, Parsoid, and MediaWiki?
- I've named you in the bug report at Phab:T155447. You can provide more information on this page or directly in the Phabricator task. Whatamidoing (WMF) (talk) 20:36, 16 January 2017 (UTC)
- Thanks Whatamidoing for your reply. I will reply to both place so people can follow this case.
- Our wiki is run on Ubuntu 14.04.5 LTS server. Parsoid version is 0.6.1, Mediawiki version is 1.27.1 LTS and VisualEditor version is 0.1.0.
- This is a private Wiki, but i have change it to a public Wiki and the problem is still there.
- We have some extensions, but i will not list them (except if you need it), because when i disable them all, this does not solve the problem.
- I don't think the problem is related to parsoid, because, when i troubleshoot parsoid and show the page in problem (http://servername:8142/localhost/v3/page/html/Test/), everithing seems to work fine and there is no error un parsoid log.
- The only way i get VisualEditor to work with a page that have an image aligment, is when i put the Wiki in english. Our Wiki is in french.
- When i inspect the code with Chrome Debugger, i get this error : Uncaught TypeError: Cannot read property 'constructor' of null at Object.oo.cloneObject.
- I have also report this bug at https://phabricator.wikimedia.org/T123471.
- Let me know if i can test something to help troubleshoot. Maalab (talk) 14:22, 17 January 2017 (UTC)
- @Maalab: how do you change public wiki to private wiki? I can only think of two ways --- going through installation process all over again or changing tons of permission variables one-by-one? Even there, I did not find any complete/exhaustive lists of permission variables that need to be set to flip a private wiki to public wiki and vice-versa. TitusiMW (talk) 22:38, 7 February 2017 (UTC)
- Maybe i am wrong about what is a private wiki, but for me, a private wiki is a wiki that require authentication to see pages. What we do to make a private wiki is remove permission to read ans edit page to all user and give those permission to know user :
- $wgGroupPermissions['*']['createaccount'] = false;
- $wgGroupPermissions['*']['read'] = false;
- $wgGroupPermissions['*']['edit'] = false;
- $wgGroupPermissions['*']['createpage'] = false;
- $wgGroupPermissions['*']['createtalk'] = false;
- $wgGroupPermissions['*']['writeapi'] = false;
- $wgGroupPermissions['user']['edit'] = true;
- $wgGroupPermissions['user']['createpage'] = true;
- $wgGroupPermissions['user']['createtalk'] = true;
- If i remove those line in my LocalSettings file, it is a public wiki and anyone can read or edit pages.
- But like i said, maybe i am wrong about what is a private wiki. Maalab (talk) 15:51, 8 February 2017 (UTC)
- My problem have been solved. See https://phabricator.wikimedia.org/T123471 Maalab (talk) 14:31, 1 March 2017 (UTC)
Don't have the Omega character in my toolbar
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi, I don't have the Omega character in my toolbar, so I can't add special characters in my pages… Is there a parameter to activate? I've got MediaWiki 1.22.5 and VisualEditor version 0.1.0
Thanks TheoHenri (talk) 17:45, 3 December 2015 (UTC)
- That old version of VisualEditor doesn't have this feature. It can't be back-ported, because we had to add features to MediaWiki to support this tool. I would recommend that you upgrade your version of MediaWiki (especially as it is no longer getting security updates) and thus give yourself the ability to use a newer version of VisualEditor. Jdforrester (WMF) (talk) 17:51, 7 December 2015 (UTC)
upload tab missing from insert media dialog
[edit]I just configured visual editor R1.26 for Mediawiki 1.26. It appears all other functions work as expected except the insert media, where the media dialog doesn't have a "upload" tab. Also, I had expected drag and drop an image will bring up the "media dialog" as well, but it doesn't seem to work either. As far as I can tell, this should have worked as of this release, am I missing something? how do I go about diagnosing it? thx Python152 (talk) 10:18, 10 December 2015 (UTC)
- I'm having the exact same problem with Visual Editor. I'm using Mediawiki 1.24.1. The upload box is not showing in the "Insert media" dialog, and the search doesn't work either. Any idea on how to fix this? Thanks Andreufsc (talk) 17:27, 17 December 2015 (UTC)
- I have the same problem too. I can understand why you don't have both of you the upload tab : I think your VisualEditor version is too old. Indeed, Upload tab appears after R1.26 version. You can verify this looking for "upload" word in the file VisualEditor\modules\ve-mw\ui\dialogs\ve.ui.MWMediaDialog.js (in github : https://github.com/wikimedia/mediawiki-extensions-VisualEditor/blob/master/modules/ve-mw/ui/dialogs/ve.ui.MWMediaDialog.js). If you don't find any upload reference is because you don't have the upload tab...
- I've got the master version where I find upload tab reference in the same file. But I can't use it. Does Anyone know how to activate it ?
- Thanks Lestieve (talk) 22:19, 21 December 2015 (UTC)
- @Lestieve, thanks for your helpful reply.
- @Python152 @Andreufsc, I'm not a dev, and most of them are out on holiday. In the past, most problems about "X isn't working, and it should" are resolved by making sure that the VisualEditor version and the MediaWiki version match. If I've understood this correctly, then I think that Python has already done this step. Beyond that, I'm not sure that Upload is an option for wikis that don't share a login system with WMF wikis. Whatamidoing (WMF) (talk) 18:04, 28 December 2015 (UTC)
- I don't think this feature has made it into a proper REL1_x branch in VisualEditor yet. I imagine it'll be in REL1_27.
- @Lestieve, can you clarify "can't use it"? Does the tab not appear, does it not let you switch to that tab, or does it just fail to upload anything? Alex Monk (WMF) (talk) 18:35, 28 December 2015 (UTC)
- Thanks for your replies, I was on holidays too :)
- "can't use it" : I mean that in "Media settings" window, I can't see the "Search" and "Upload" tabs like in Wikipedia. I just see the search field to insert a word key. Lestieve (talk) 19:56, 4 January 2016 (UTC)
- Where do you expect the uploaded files to be stored (Commons or your private wiki)? Whatamidoing (WMF) (talk) 20:02, 4 January 2016 (UTC)
- First, I wanted to store files on my private wiki. But, do you mean the upload tab is for stored files in Commons ? It can be another possibility for me... Lestieve (talk) 23:06, 4 January 2016 (UTC)
- Yes, the Upload tab is for storing files on Commons. Whatamidoing (WMF) (talk) 01:56, 9 January 2016 (UTC)
- Thanks, can you tell me how to display the Upload tab ? Lestieve (talk) 23:19, 11 January 2016 (UTC)
- I don't believe that's possible on private wikis at the moment. There wouldn't be any point in providing an Upload tab that uploads images to (only) Commons, when your wiki isn't connected to Commons, would there? Whatamidoing (WMF) (talk) 03:49, 28 January 2016 (UTC)
- Having the same issue with my wiki. How can I enable the "Upload" tab in the insert/media dialogue? (I am running the latest wiki & VE)
- Thanks! 212.73.171.142 (talk) 14:49, 28 January 2016 (UTC)
Add new creative commons sources in media tab
[edit]Hello, I would like to add others creative commons sources in the insert media tab. By default, it's only possible to look for wikimedia commons pictures. But is it possible to add others sources like Flickr, Pixabay or Google Images ?
Thanks Lestieve (talk) 22:43, 21 December 2015 (UTC)
- No, this is not possible. Whatamidoing (WMF) (talk) 18:03, 28 December 2015 (UTC)
Copy & paste tables
[edit]When i tried to copy and paste a table into mediawiki from excel, i noticed the layout looks exactly as what i want but the table lines were all transparent.
I was able to select all the top cell as header cell, but the other cells which are content cells, i can't seem to insert border line to them.
Once i saved it, the tables looks ugly without the border line. Will VE have option to add border lines? or is there anyway i can add border lines to tables? AmazingTrans (talk) 16:57, 22 December 2015 (UTC)
- Switch to wikitext mode and add class="wikitable"? See also https://phabricator.wikimedia.org/T85577. Elitre (WMF) (talk) 17:02, 22 December 2015 (UTC)
- Works for now. Thanks!
- Will wait for function to enable wikitable by visualeditor i guess AmazingTrans (talk) 19:13, 22 December 2015 (UTC)
- This function is on the dev's priority list for the first months of 2016. We're all looking forward to it. Whatamidoing (WMF) (talk) 17:49, 28 December 2015 (UTC)
Picture search in VE
[edit]In my private wiki,
I have uploaded couple of pictures: PictureA.jpg, PictureTest.jpg, PictureHey.jpg, PictureDEER.jpg,
When i did a insert media using VE, the search box pop-ups without any picture first, then I type the words P nothing comes out, i have to type Picture Then only the pictures are shown.
Is there anyway to setup so, VE show all picture during the start, and then show picture as long as 1st letter is typed? AmazingTrans (talk) 16:28, 23 December 2015 (UTC)
- Short answer: Maybe.
- Long answer: The visual editor uses the same search as Special:Search on your wiki. If "File:P" doesn't produce any results in the search box at the top of the page, then neither will "P" in the search box inside the visual editor. This may or may not be configurable locally. (You'd have to figure out whether you have "old search" or Extension:CirrusSearch, and read the documentation. You might also want to look into the new (beta level)Extension:CirrusSearch/CompletionSuggester, which might also improve your experience.)
- However, specifically for the visual editor, the team is thinking about changing the first search to show the images that your account uploaded first, which would probably solve your problem in practice. Whatamidoing (WMF) (talk) 17:48, 28 December 2015 (UTC)
- Let's see. I have the following library.
- ruflin/elastica
- But i don't see CirrusSearch extension. Does that mean i have the default mediawiki old search? AmazingTrans (talk) 15:49, 4 January 2016 (UTC)
- Probably? Someone may be able to tell you for certain if you ask at the Project:Support desk. Whatamidoing (WMF) (talk) 01:55, 9 January 2016 (UTC)
- Thanks AmazingTrans (talk) 04:32, 9 January 2016 (UTC)