Extension talk:WikiEditor

About this board

pre LQT talk on this page (talkcontribs)

Dear all,

I will glad if you will add new section - math to the layer: Advanced, Special characters, Help, Cite.

It will be easier for new users - to click on bottun such us :

  1. "Fraction" (and not frac{a}{b})
  2. "Radicals" (and not \sqr{a}{b})
  3. "long list (and not <math>\begin{align} a\\ \b\\ \c\\ \d\\ \end{align} </math>
  4. there and many buttons you can added. In many site base on wiki DB, there are already such option.
  5. thanks, ~~~~
He7d3r (talkcontribs)
Tacsipacsi (talkcontribs)

T25354 is about CharInsert, this topic is on the talk page of WikiEditor. The two have independent character collections, and WikiEditor’s is pre-defined in software (and has already supported different display text), so the patch for T25354 didn’t make it possible to use math from WikiEditor’s toolbar.

Reply to "math bar"

Paste large text doesn't work

Dominik Maus (talkcontribs)
Reply to "Paste large text doesn't work"
ChongDae (talkcontribs)

When search and replace, can I insert newline? '\n' seems not to work for replace text.

Utar (talkcontribs)

Wikitext is not just a string so common "\n" doesn't make new lines here. Use HTML tag "<br />" instead of "\n" to make a new line in the article.

He7d3r (talkcontribs)

What if the intention is not to make a new line in the displayed text, but only in the wikitext?

Seppl2013 (talkcontribs)

An example would be to search & replace * bullet1 *bullet2 *bullet3 *bullet4 *bullet5 - search "*" replace "\n*" unfortunately does not work - doing this manually is very tedious so adding the capability to insert tabs newlines and other special characters would be really helpful.

Wqnvlz (talkcontribs)

Now tracked in phab:T281326.

Reply to "newline for search/replace"

I am deeply saddened ...

Summary last edited by FreedomFighterSparrow 15:45, 11 May 2021 1 year ago

This functionality has been removed from the extension, but available as a gadget by Hydra/Gamepedia contributors. See this page for download and instructions. Note that the Gadgets extension is a requirement. Works at least for MW 1.31.x and 1.35.x.

Kghbln (talkcontribs)

... by the removal of the preview feature which was working fine. The publish feature was indeed a bit suboptimal but the preview feature was great and working fine for years. This is a big step towards making MediaWiki editing less awesome for people who do not want or cannot use parsoid. I guess this is a sign of a lost perspective and for defying reality.

FreedomFighterSparrow (talkcontribs)

True. This isn't cool.

Ralfk (talkcontribs)

Missing the preview feature as well! (talkcontribs)

Is there any way to reactivate the preview?

2600:1700:1D01:22D0:BCF3:11DA:6306:20BB (talkcontribs)

I am both saddened and highly annoyed. The feature was one of the most used on my wiki.

Kghbln (talkcontribs)
أحمد (talkcontribs)

As of the time of this comment, there seems to be an intention to bring this functionality back, starting version 1.39, as obvious from the mentioning of a configuration variables in Extension:WikiEditor#Realtime_Preview

Reply to "I am deeply saddened ..."

How to adjust line spacing in editing box?

Metalbunny (talkcontribs)

Using the WikiEditor that came with MW 1.27.0 (not sure how to check what the WE ver. is), when I enable the enhanced toolbar, the line spacing in the editing box is increased so it looks like 1.3 or 1.5 line spacing. With the normal toolbar the spacing looks like I'd expect (single spacing I assume), but with the enhanced toolbar the spacing looks too big.

Along with the bigger spacing looking "weird" and making text harder to read (courier don't work well with big line spacing), it also makes it difficult to tell how many lines are between text in sections with double (or more) line breaks.

Don't know if it makes a difference that I use MonoBook (without the WYSIWYG).

But, enough rambling: Is there a way to adjust the linespacing (and where do I look)?

Doc James (talkcontribs)

Yup encountered the same issue...

Purpose of wikiEditor-ui-right?

Samwilson (talkcontribs)

WikiEditor adds a <div class="wikiEditor-ui-right"></div> element, but it doesn't seem to serve any purpose: nothing ever uses it. Does anyone know what it's for? I'm wondering if it should be exposed in the $.wikiEditor API so that other things can add content to a righthand side pane (e.g. for the upcoming realtime preview UI).

TheDJ (talkcontribs)
Samwilson (talkcontribs)

@TheDJ: Oh great, thanks for the link! And yeah, I'm totally keeping ProofreadPage in mind with this, because it's basically the same UI (e.g. would be great to have resizability there too).

Reply to "Purpose of wikiEditor-ui-right?"

How to reactive preview tab?

Summary by Kghbln
Deletedaccount4567435 (talkcontribs)

preview tab disappeared with MW 1.31 upgrade.

It was one of the most used on our wikis, and everybody like it.

How can we reactive preview tab?

FreedomFighterSparrow (talkcontribs)

Unfortunately, it's gone for good, unless someone develops an appropriate extension. See discussions here: phab:T165112 and phab:T185555.

Kghbln (talkcontribs)

How to show page size (kilobytes) above edit box?

5 (talkcontribs)
Notice the 66 kB indicator above the edit field.

I 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?

Dinoguy1000 (talkcontribs)

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.

Jdforrester (WMF) (talkcontribs)

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. (talkcontribs)

I can still see that size indicator inside the #mw-edit-longpage-hint HTML division on German Wikipedia:

<div id="mw-edit-longpage-hint">
<p>Größe der Seite bzw. des bearbeiteten Abschnitts: 97 KB.
Jdforrester (WMF) (talkcontribs)

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.").

Reply to "How to show page size (kilobytes) above edit box?"

Compatibility issue with Page Forms

Drfoland (talkcontribs)

WikiEditor 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.

Jdforrester (WMF) (talkcontribs)

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.

Whatamidoing (WMF) (talkcontribs)

Pinging @Yaron Koren, because this incompatibility should probably be documented somewhere (assuming it can't be fixed).

Yaron Koren (talkcontribs)

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?

Hazeldee0512 (talkcontribs)

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?

Jongfeli (talkcontribs)

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.

Reply to "Compatibility issue with Page Forms"

WikiEditor not showing in version 1.31.4

3 (talkcontribs)

I upgraded my Wiki from version 1.31.1 to 1.31.4. Everythings works fine except that the WikiEditor ist not showing up during editing any more. The WikiEditor is listed on the special pages "Version". Error tracking is on. I do not get any errors. Examining the page in Firefox with F12 showed also no errors. I didnt't change my LocalSettings and I ran the update script. Any suggestions?

Greetings from Basel

Thomas (talkcontribs)

I changed back to version 1.31.1 an the editor is showing up. Switching back to 1.13.4 the editor is gone again.

Patrickterrematte (talkcontribs)


I'm struggling with the same problem. My server is running with nginx, and I get those two errors on browser console:

  • GET w/images/cc-0.png[HTTP/1.1 403 Forbidden 75ms]
  • GET w/index.php/Resources/assets/poweredby_mediawiki_88x31.png[HTTP/1.1 404 Not Found 181ms]

And those two warnings:

  • This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”.
  • JQMIGRATE: Migrate is installed with logging active, version 3.0.1 load.php:141:217 This page is using the deprecated ResourceLoader module "jquery.tabIndex". load.php:172:1044

WikiEditor0.5.3 (57eb9ad) 07:27, 23 September 2019

Installed software

Product Version
MediaWiki 1.34.2
PHP 7.4.8 (fpm-fcgi)
MariaDB 10.3.22-MariaDB-1:10.3.22+maria~stretch
ICU 65.1

Perhaps, my nginx is badly configured? Any glue?

I will try to install the VisualEditor : VisualEditor/Installation on a shared host. But it does not seem very practical choice to me. Otherwise, I'll try to downgrade to 1.31.1, as said.

Thanks for your attention!

Reply to "WikiEditor not showing in version 1.31.4"
Return to "WikiEditor" page.