Extension talk:WikiEditor

Jump to: navigation, search

About this board

pre LQT talk on this page

Ядерный Трамвай (talkcontribs)

Phrases are visible. Looks like buttons work, just there are no icons on them.

Megajoule (talkcontribs)

The file path "$wgResourceBasePath/extensions/WikiEditor/modules/images/toolbar/" must be correct.

Have you modified the $wgResourceBasePath value ?

Reply to "No icons appearing at MW 1.27.1"

[SOLVED] WikiEditor does not show - Fresh install

Slidinghorn (talkcontribs)

I've just installed a fresh MW wiki, and elected to use the WikiEditor extension during the installation process. Looking at my LocalSettings.php file, I do show the "wfLoadExtension( 'WikiEditor' ); - However, when I go to edit or create a page, it's just the standard editor. I've cleared the cache, logged in as different user accounts, etc. I'm at a loss here. Any tips?


MediaWiki 1.30.0

PHP 7.0.27-0 (Debian 9 & apache2)

MariaDB 10.1.26

WikiEditor does show under "Installed extensions" on my Version page

Thanks ahead of time for any help!

Slidinghorn (talkcontribs)

It appears that this option needs to be set for the editor to be enabled:

$wgDefaultUserOptions['usebetatoolbar'] = 1;

Thanks for those who were taking a look at this - Hope this is useful to anyone who comes across this issue in the future.

Reply to "[SOLVED] WikiEditor does not show - Fresh install"

I am deeply saddened ...

Summary by Kghbln

That's the way it is even though it radically cripples MediaWiki editing. No need to discuss further.

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.

Reply to "I am deeply saddened ..."

MW 1.30: Is there solution to do not remove "Cancel" button in right up corner?

Summary by Whatamidoing (WMF)
B.Shapoval (talkcontribs)

Buttons "Publish" and "Cancel" in right top corner are very useful. $wgOOUIEditPage from MW 1.29 is removed in MW 1.30. "Cancel" is not working properly for now: it redirects to "undefined" error page. Is there any solution to fix this problem without removing both or single button?

Whatamidoing (WMF) (talkcontribs)

"Cancel" was removed because it almost never got used. Most people (on the public wikis, especially Wikipedia) who wanted to cancel an edit either closed their browser tab or clicked on the "Read" tabs (at the very top). The team has considered other options, such as putting the "Cancel" button in one of the menus.

Reply to "MW 1.30: Is there solution to do not remove "Cancel" button in right up corner?" (talkcontribs)

My wiki uses media queries to alter the skin for mobile phones. Is there any way to stop this extension from running when the screen resolution is lower than a certain amount? I guess I could use CSS to hide the editor but it's not a great solution.

Whatamidoing (WMF) (talkcontribs)
Reply to "Disable on mobile skin?"

MW Rel 1.29.0 : bug report : Cancel button does not work properly

Spas.Z.Spasov (talkcontribs)

WikiEditor cancel button (upper right corner) redirects to uri /undefined. Here you are a screen shot.

Could it be fixed in the next release? (talkcontribs)

I see this on my site too. I have temporarily disabled the Publish/Cancel buttons on the upper right. The buttons at the bottom seem to be working just fine. (talkcontribs)

I am using MW 1.29.1, by the way. Still see the issue.

This post was hidden by Abhidevananda (history)
Abhidevananda (talkcontribs)

Though it's just a temporary and convenient precaution (not a solution), I've disabled just the not-working Cancel button... leaving the still-working Publish button in place... by editing the jquery.wikiEditor.publish.js file in the modules directory to delete (or comment out) the following code:

context.fn.addButton( {

    captionMsg: 'wikieditor-publish-button-cancel',

    action: function () {

        window.location.href = $( '#mw-editform-cancel' ).attr( 'href' );

        return false;


} );

NOTE: This is not a good solution for MW1.29 and MW1.29.1. A better solution is provided below. However, if the WikiEditor extension is not fixed to resolve this problem before the general release of MW1.30, then those with MW1.30 and onward may want to resort to this inadequate fix.

Abhidevananda (talkcontribs)

Problem solved for MW1.29.0 and MW1.29.1

The issue and the workaround are detailed in the MW1.29 release notes. A solution to the problem is found there and also here.

In short, all that you need to do is add the following code in LocalSettings.php.

$wgOOUIEditPage = false;

NOTE: This workaround will only help with the MW1.29 releases. From MW1.30 onward, we are stuck with the red Cancel button (as seen below any edit box on this page) instead of the blue Cancel button from earlier releases (that this fix takes us back to). So the developers of WikiEditor will have to make some change in the extension code to accommodate that. (talkcontribs)

Thanks a bunch, Abhidevananda and others. This worked for me.

Reply to "MW Rel 1.29.0 : bug report : Cancel button does not work properly"

Is the "upload" in "image" tab only available for Wikipedia?

Zoglun (talkcontribs)

I saw same icon in image window, but when I click it in my MW 1.27.1 wiki, it only show you are not login.(Where I am login-ed for sure )

Any other extension or config need to be set to get this function work?

Here is the upload that I mentioned: http://i.imgur.com/0HcDtYB.png

Error example: http://i.imgur.com/D3w6am8.png (talkcontribs)

I was able to make this work for a single user. I have no idea why it's working only for this one..

Reply to "Is the "upload" in "image" tab only available for Wikipedia?"
Summary by Jdforrester (WMF)

Will be fixed in MediaWiki 1.29.1.

Marccreal (talkcontribs)

When clicking on "Embedded file", the "insert file" window pops up. But when I click on "upload" there, the window closes and nothing happens. This problem occurs in my 1.29.0 version, in a separate 1.28.2 installation (on the same server), the upload works fine.

In the browser console, I get the following error (in the 1.28.2 version, I don't get errors):

:Uncaught Error: Windows must have a `name` static property defined.


at OoUiWindowManager.OO.ui.WindowManager.addWindows (load.php?debug=false&lang=en&modules=jquery.accessKeyLabel%2Casync%2CbyteLength%2CbyteLimit%2Ccheck…:537)

    at HTMLDivElement.wikieditor-toolbar-tool-file-upload (load.php?debug=false&lang=en&modules=ext.wikiEditor|ext.wikiEditor.core%2Cdialogs%2Cpreview%2Cpubli…:60)

    at HTMLButtonElement.props.click (load.php?debug=false&lang=en&modules=jquery.ui.button%2Ccore%2Cdialog%2Cdraggable%2Cmouse%2Cpositio…:24)

    at HTMLButtonElement.dispatch (load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0ax79ee:65)

    at HTMLButtonElement.elemData.handle (load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0ax79ee:60)

Is this a bug in the new version?

Jdforrester (WMF) (talkcontribs)

Hi there, good spot.

This was bug T164999 which we fixed a few hours after the cut for MediaWiki 1.29 and didn't notice, sorry!

I've made https://gerrit.wikimedia.org/r/#/c/366262/ as a backport of the fix, and that should be released in MediaWiki 1.29.1. If it's urgent, you should be able to apply it locally.

Sorry for the issue.

Marccreal (talkcontribs)

Thank you for the quick response! I applied the changes in "mediawiki.Upload.Dialog.js" and now the upload works again.

Customizing the toolbar (loading ext.wikiEditor.toolbar?)

LivioRobaldo (talkcontribs)

I am trying to customize my WikiEditor toolbar (Extension:WikiEditor/Toolbar customization), but I don't manage to add/remove buttons :-(

I'm not sure that I have done the following:

"The module "ext.wikiEditor.toolbar" needs to be loaded."

How can I do? How can I check if ext.wikiEditor.toolbar is properly loaded?

Any help would be highly appreciated.



Reply to "Customizing the toolbar (loading ext.wikiEditor.toolbar?)"
DSwissK (talkcontribs)

When I press on the signature button, I get a "<sig-text>" tag. Any idea how to remove/set it up ?

Thanks !

Whatamidoing (WMF) (talkcontribs)

I think that creating MediaWiki:Sig-text (presumably with ~~~~ and/or whatever text you want to be pasted in when you click that button) would solve your problem.

DSwissK (talkcontribs)

Wow! Easy as 1 2 3. Thanks, you just saved my wiki ! ;)

Whatamidoing (WMF) (talkcontribs)

I'm glad that I could help.

It might not work for people who have set their user interface language to something other than the default. (It might; it might not. I don't know.)

DSwissK (talkcontribs)

The interface language of my wiki is French so I guess it does work.

And, if it can help someone else, I set "$1" on the page content.

Reply to "Signature button"