Extension talk:WikiEditor/2020
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. |
Compatibility issue with Page Forms
editWikiEditor 1.32 has a compatibility issue with the Page Forms extension. This is due to the fact that
$.wikiEditor.modules.dialogs.config = { ... };
has been replaced with
module.exports = toolbarConfig;
Page Forms still relies on the jQuery module, and thus fails to render the WikiEditor toolbar when using the form editor. This is easy to resolve by redefining the jQuery module for backwards compatibility, but may be more appropriate to resolve with the Page Forms team. Drfoland (talk) 20:07, 1 July 2020 (UTC)
- We won't bloat the experience for all users of WikiEditor just to provide compatibility for PageForms; the maintainers of code dependent on WikiEditor are responsible for maintaining that, sorry. Jdforrester (WMF) (talk) 11:34, 2 July 2020 (UTC)
- Pinging @Yaron Koren, because this incompatibility should probably be documented somewhere (assuming it can't be fixed). Whatamidoing (WMF) (talk) 17:46, 3 July 2020 (UTC)
- I thought this was fixed in Page Forms already, but maybe not. What version of Page Forms are you running? Or are you just looking at the current code? Yaron Koren (talk) 18:48, 3 July 2020 (UTC)
- Hi @Yaron Koren -- I'm having this exact issue with PF 4.5.1 and WikiEditor 0.5.2. Have you been able to implement a fix yet? Hazeldee0512 (talk) 17:09, 25 August 2020 (UTC)
- It seems that after the changes done in WikiEditor going from 1.34.0-wmf.16 to 1.34.0-wmf.17 WikiEditor stopped working inside a form.
- This means when you use WikiEditor version 1.34.0-wmf.16.zip it works just fine inside a form.
- This was with tested and works on:
- MW 1.34.4
- SMW 3.2.0
- Page Forms 5.0-alpha (9e17cd7)
- WikiEditor 1.34.0-wmf.16
- PHP 7.3.23
- I am not sure what has to be done to get the later versions of WikiEditor to work in a form, a lot has changed since then but this probably needs to be solved in Page Forms. Felipe (talk) 07:59, 22 October 2020 (UTC)
How to show page size (kilobytes) above edit box?
editI found this 2009 screenshot from the German Wikipedia. I couldn't help but notice "Diese Seite ist 66 kB groß.", which indicates that the page has about 66 thousand characters.
I looked today and the indicator appears missing. But the feature may still exist in MediaWiki. I could not find a documentation of it on this site.
Is there any way to enable the size (kilobyte) indicator which shows above the edit field for all users of my MediaWiki installation? What do I need to change in LocalSettings.php? 84.147.33.26 (talk) 10:56, 11 November 2020 (UTC)
- IIRC the software used to provide a notice if the text content of a page was over 32kb in size, due to many browsers of the time having trouble properly loading/displaying pages of that size. I have no idea if the notice is still displayed, or if not, what version of MediaWiki saw its removal.
- Alternatively, that may have been a gadget or user script used by the person who took the screenshot, in which case your best bet would be to ask that person if they know/remember what gadget or script it was. 「ディノ奴千?!」☎ Dinoguy1000 18:51, 11 November 2020 (UTC)
- The feature was inside core (not specific to WikEditor), and was regrettably removed around 2010-ish. Since then we've seen people abuse the technical limit of 2 MiB as if that's a reasonable guide for what makes for a good page length. Oh well. Jdforrester (WMF) (talk) 18:39, 16 November 2020 (UTC)
- I can still see that size indicator inside the
#mw-edit-longpage-hint
HTML division on German Wikipedia: - 198.24.162.179 (talk) 22:41, 10 January 2021 (UTC)
<div id="mw-edit-longpage-hint"> <p>Größe der Seite bzw. des bearbeiteten Abschnitts: 97 KB. </p> </div>
- Ah, interesting, you're right; I thought it was removed, but instead in 0b92d6261 it was just turned into an optional feature. To enable, set the
longpage-hint
message to something other than-
(i.e., edit your wiki's[[MediaWiki:longpage-hint]]
page to something like "This page is $1 kilobytes long; consider making it shorter.
"). Jdforrester (WMF) (talk) 21:04, 11 January 2021 (UTC)