Extension talk:VisualEditor/2017/07
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. |
Please note that the Wikimedia Foundation does not provide support for installing VisualEditor on third-party wikis. However, if you have a question we may try to help.
VE-version MediaWiki 1.28.2
[edit]We're trying to upgrade our wikifarm using MW 1.27.1 to 1.28.2. We really want a newer version of the Visual Editor.
But checking the Special:Version-page after upgrading and 'git checkout REL1_28' of VE gives 25 okt 2016 21:23 for the VE-extension.
Is this really the latest version of VE you can use with MW 1.28.2?
(Using REL1_29 gives "Uncaught exception 'Exception' with message 'VisualEditor is not compatible with the current MediaWiki core (version 1.28.2), it requires: >= 1.29.0.' ...") Waanders (talk) 13:51, 3 July 2017 (UTC)
- I understand that the versions of MW, VE, and Parsoid all have to match. Whatamidoing (WMF) (talk) 19:30, 5 July 2017 (UTC)
- Thanks. But that means we've to use the 25 October 2016-version of the Visual Editor when using the latest stable version of MediaWiki :-( Waanders (talk) 12:30, 10 July 2017 (UTC)
- The release candidate for MediaWiki 1.29.0 just got announced last week, and I imagine it'll be out soon. Jdforrester (WMF) (talk) 15:53, 10 July 2017 (UTC)
Instructions for linking with Parsoid in private wikis
[edit]There's a section at Extension:VisualEditor#Linking with Parsoid in private wikis that has no content. This is problematic, because Parsoid/Troubleshooting#Other things to check links to it. 216.114.117.77 (talk) 02:02, 13 July 2017 (UTC)
- There are three sub-sections there. It's not obvious because of the CSS on ===Level 5=== headings, but take a look at the table of contents to see what I mean. Whatamidoing (WMF) (talk) 18:28, 31 July 2017 (UTC)
The error "http" appears in a JS alert box. What could this mean?
[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.
My installation is throwing up a JS alert box whose only content is the string "http". That's it.
This is with MediaWiki 1.28.2, snapshot 93528b7 of VisualEditor as provided by the extension distributor, and snapshot 7f120fa of Parsoid from https://gerrit.wikimedia.org/r/p/mediawiki/services/parsoid.
The wiki is private and uses HTTPS. I have checked, and I have correctly entered HTTPS URIs in both Parsoid's config.yaml and MediaWiki's LocalSettings.php.
No messages appear in the browser's console. My Parsoid server doesn't see anything happen. I don't know of any other logs to provide. Does anyone know what my cause this kind of issue?
Thanks! 216.114.117.77 (talk) 02:16, 13 July 2017 (UTC)
- I should add a crucial piece of information: The JS box appears after some delay when I hit the edit link for a page. 216.114.117.77 (talk) 02:17, 13 July 2017 (UTC)
- Have you setup `stunnel` for Parsoid? Spas.Z.Spasov (talk) 10:32, 13 July 2017 (UTC)
- I'm pretty sure I have. It is installed, and it appears to be running according to service --status-all. Here is my configuration for stunnel, located at /etc/stunnel/parsoid.conf:
cert = /etc/letsencrypt/live/(redacted)/fullchain.pemkey = /etc/letsencrypt/live/(redacted)/privkey.pem[parsoid]accept = 8143connect = 8142- I don't actually know anything about stunnel other than that it's supposed to let VisualEditor and Parsoid talk over HTTPS. Or that's my understanding. I will try to learn more, including looking for log files. Please let me know if there is any other configuration you would like to see
- If it's important, I'm using Let's Encrypt, which seems to be working perfectly. 216.114.117.77 (talk) 20:39, 13 July 2017 (UTC)
- Figured it out. I needed to install php-curl. Doing that resolved this issue. 216.114.117.77 (talk) 21:52, 13 July 2017 (UTC)
Line breaks are disappearing
[edit]MW 1.27
VE 0.1.0
Hi @Mattflaschen-WMF, @Whatamidoing (WMF)
I want to add new paragraphs and just add new lines as if I would use MS Word but after saving the "empty" lines and therefore the paragraph disappears. Seems that VE just deletes empty lines. I also noticed this behavior on this site, is there any possibility to keep these "empty" lines ?
Thanks in advance! Lanthanis (talk) 11:11, 17 July 2017 (UTC)
- Like this:
- Some text
- (empty line)
- (empty line)
- new text. Lanthanis (talk) 11:11, 17 July 2017 (UTC)
- VisualEditor's visual mode reduces multiple consecutive blank lines to a single blank line.
- Why do you want two blank lines displayed between paragraphs? Whatamidoing (WMF) (talk) 18:57, 31 July 2017 (UTC)
- Just to mark off seperate sections. Lanthanis (talk) 08:33, 1 August 2017 (UTC)
- Well... I can tell you a list of things that won't work, but that's not really going to help you. You could transclude an empty page (see https://en.wikipedia.org/w/index.php?title=User:Whatamidoing_(WMF)/sandbox&diff=793741134&oldid=793741025), but that's a really ugly hack.
- I can't think of any decent way to do this.
- @Jdforrester (WMF) is usually good at this kind of problem. Whatamidoing (WMF) (talk) 17:13, 3 August 2017 (UTC)
- I think this is a big issue and a lot of my users complain about it. Not only does it remove blank lines it also removes any space after bullet point lists and numbered lists and it look really ugly. Konjurer (talk) 14:49, 25 September 2017 (UTC)
- Indeed! Lanthanis (talk) 09:00, 26 September 2017 (UTC)
- @SSastry (WMF), is there any need for Parsoid to remove all of the blank lines after a list and before the next regular paragraph? It is a bit easier, when editing in wikitext mode, to have a (single) blank line before and after every list. Whatamidoing (WMF) (talk) 22:09, 27 September 2017 (UTC)
- Parsoid doesn't remove newlines on its own. But, yes, we can update the defaults so that we add newlines before and after a list (this only applies to newly inserted and possibly edited lists). SSastry (WMF) (talk) 22:15, 27 September 2017 (UTC)
- @Whatamidoing (WMF)could you please file a phab task requesting this newline before/after a list? Thanks.
- hatamidoing (WMF)W SSastry (WMF) (talk) 22:43, 27 September 2017 (UTC)
- Done: phab:T177102. Whatamidoing (WMF) (talk) 17:52, 29 September 2017 (UTC)
- This is not a solution to the general issue. In wikitext you can add a new line (<br />) but in VE there is no such option, is there? AdSvS (talk) 13:32, 6 December 2017 (UTC)
- Will it be possible in the future, to not have VE remove the blank lines ? Not just before/after a list but overall ? 5.103.137.211 (talk) 22:44, 9 January 2018 (UTC)
- I would appreciate this too, @Whatamidoing (WMF) and @SSastry (WMF).
- I would like to structure my articles the way I feel comfortable and not being forced to use your structure policy (don't take this personal). Or maybe some tag recognized by VE? Lanthanis (talk) 09:15, 10 January 2018 (UTC)
- As I said earlier, Parsoid doesn't remove newlines on its own. If there is a bug related to how Parsoid is converting VE's HTML to wikitext, please file a bug with details. Thanks. SSastry (WMF) (talk) 14:49, 10 January 2018 (UTC)
- @SSastry (WMF) So it is VE, not Parsoid, which deletes the lines ? I'll try to debug this and file a bug as soon as I find it out. Lanthanis (talk) 14:52, 10 January 2018 (UTC)
- I've filed it as phab:T184755. I don't know whether the team will implement it. Whatamidoing (WMF) (talk) 18:38, 11 January 2018 (UTC)
- I'd also love to see this resolved. Give us a tag or a keyword, something that lets us control our layout. But isn't VE supposed to be WYSIWYG?
- Stefan 124.121.195.196 (talk) 04:37, 20 February 2018 (UTC)
- We'll investigate this on the Parsoid end soon. SSastry (WMF) (talk) 05:26, 20 February 2018 (UTC)
- VisualEditor's visual mode is supposed to be rich-text, which is not quite the same thing as WYSIWYG. Whatamidoing (WMF) (talk) 18:58, 2 March 2018 (UTC)
- @Whatamidoing (WMF) Unfortunately there are some people thinking it is a WYSIWYG:
- Wikipedia is in the process of changing from WikiEditor to the new WYSIWYG editor VisualEditor. See VisualEditor:Test to try it.
- - WYSIWYG editor Lanthanis (talk) 08:48, 13 April 2018 (UTC)
- How is this task coming along SSastry? Although VE is brilliant, this is really an annoying behavior of the VE. As admin of my company's wiki, I field A LOT of questions about this behavior. Once the issue is resolved, how long does it take to make it into the VE extension for the general public?
- Thanks for your hard work! Konjurer (talk) 15:42, 12 April 2018 (UTC)
- This is coming along -- I have a patch to fix a related issue in Parsoid before we can address this newline handling issue. Note that this is an entirely Parsoid only change. We release debian packages once in 6 months. So, the next release will be in October. So, if you want a version that fixes this problem once we have it in master, you will have to install the master version of Parsoid from the git repo. Anyway, let us wait till the fixes land. SSastry (WMF) (talk) 15:51, 12 April 2018 (UTC)
- @SSastry (WMF) How is this coming along? This is still the most complained about thing I receive. Can we expect a fix in October for the disappearing blank link issue? Thanks! Konjurer (talk) 15:27, 20 September 2018 (UTC)
- @Konjurer we have release a new deb version (0.10.0) that has this fix - See Parsoid/Releases SSastry (WMF) (talk) 16:14, 6 December 2018 (UTC)
- Sorry about the lack of updates but the dependency patches were merged and deployed. We'll try to get this in before the next release. SSastry (WMF) (talk) 17:13, 24 September 2018 (UTC)
نصب ویرایشگر دیداری
[edit]سلام
وقت بخیر
افزونه پارسروید را لطفا توضیح دهید
چگونگی نصب افزونه ویرایشگر دیداری و
بنده اصلا سر در نمیارم
mahdi.alavi.nasab@gmail.com Sokote zaman (talk) 15:42, 21 July 2017 (UTC)
- This seems to be a request about how to install Parsoid/VE. Elitre (WMF) (talk) 16:09, 21 July 2017 (UTC)
- Parsriod هم virsualEditor و هم Sokote zaman (talk) 16:13, 21 July 2017 (UTC)
Hiding translate comments
[edit]Hello!
I have VE and Extension:Translate installed.
Extension:Translate automatically inserts comments in VE in order to split the paragraphs that need to be translated.
The comments of Extension:Translate always have the following structure:
<!--T:1-->
In VE, this is how it looks like:
This is inconvenient for the users who don't understands why a comment shows up here and why this comment is empty...
In the meantime, I need to keep this comment in wikitext since it is required for the translation.
Is there a way in VE to hide comments? Or, even better, a way to hide empty comments?
Thanks a lot for your support.
Best, Clément ClemFlip (talk) 10:38, 24 July 2017 (UTC)
- We strongly advise users who want to use the Translate extension not to use VisualEditor; they're only marginally compatible, and break in subtle ways. There's a notice given when you load VisualEditor on a translatable page that things might well not work. Our long-term plan is to consider how we can change translation tools to work together, but that's a long way off at this point, sorry. Jdforrester (WMF) (talk) 14:58, 24 July 2017 (UTC)
Not recognizing that user is logged in
[edit]Our wiki is private and uses the Auth_remoteuser extension (we use Shibboleth so Apache handles the user authentication). I've just tried to add Visual Editor to our wiki. I've configured it to forward cookies to Parsoid per the private wiki config instructions.
To get Parsoid to work, I also had to modify apache config to allow API requests from the local server to bypass Shibboleth authentication. I was getting readapidenied errors otherwise because Parsoid would try to hit the API endpoint and Apache would redirect it to the Shibboleth login screen.
The visual editor launches fine now, but warns me that I am not currently logged in, even though I am. Then when I save it warns me that my session is no longer valid and offers to do an anonymous save instead.
I thought that by forwarding cookies, the visual editor would know which user was logged in, but that doesn't seem to be the case. Any ideas of other config I can try? Franfabrizio (talk) 11:31, 25 July 2017 (UTC)
