Commit graph

55 commits

Author SHA1 Message Date
Fomafix ace852b237 Add missing dependency to module 'jquery.mwExtension'
jquery.wikiEditor.dialogs.config.js is using $.escapeRE().

Change-Id: I121c09fe7a598364e9005b61aec3e8c3d113b513
2015-01-15 19:41:30 +00:00
Fomafix 77fca50876 Use mw.Api() instead of $.ajax()
Add dependency to the already used module 'mediawiki.api'.

Change-Id: I236b3be5f64ac92f6710e5c690b0cc1800ceb1c5
2015-01-07 18:25:47 +00:00
jenkins-bot ea569a993a Merge "Remove previewDialog" 2014-12-05 13:03:26 +00:00
paladox 01017b31f0 Remove $ from wgExtensionCredits
Change-Id: I16e2fe834e1744f99f61238da44e00211458e706
2014-12-04 17:21:25 +00:00
Derk-Jan Hartman 360419f397 Remove previewDialog
This was never launched, and is no longer working either.

Change-Id: Ic49e84b8a91da701673949a8d441c788a4feaa22
2014-11-30 20:25:22 +01:00
Alexander Jones 55c6e1271f Add QUnit test for ext.wikiEditor.toolbar
This patch replaces the manually operated test module for ext.wikiEditor.toolbar
with one based on QUnit. The new test suite uncovered a bug with the removeFromToolbar
API function in jquery.wikiEditor.toolbar, which prevented the removal of select buttons
from the toolbar. This issue has also been fixed in this commit. .jshintrc was updated
to ignore the new QUnit global.

Bug: T39485
Change-Id: Icef3debcffa484a8d78628bcd9da0892b750bb40
2014-11-29 14:12:26 -06:00
paladox 1bb0ea4f76 Convert entry point to use explicit globals
When installing the extension with composer, the entry
point is not included in filescope, so any global variables
must be made explicit by using $GLOBALS.

Change-Id: I15cc8ac2b5008364d958a2d847823124c1f27993
2014-11-22 19:52:11 +00:00
Derk-Jan Hartman 444146bfdc Toolbar: Fix dependencies of WikiEditor toolbar
These modules are actually used from the toolbar module and not the
toolbar.config module. An alternative toolbar configuration would run
into a problem because of this.

Change-Id: I91e9daa230f7c831eff1694e6685a7a650858f8a
2014-06-16 01:11:56 +02:00
paladox 8f4ee751f9 Updated documentation in WikiEditor.php
Change-Id: I195fda77a971dbe036fb2664789e6a5912ea80e1
2014-06-01 12:43:14 +01:00
Derk-Jan Hartman 632509d278 Revert "Make the toolbar and dialogs enabled by default."
This has unexpected side effects
This reverts commit 5233d0781f.

Bug: 65331
Change-Id: Ic90475c95b402b3998ba328ea0b51e4cf87c89d5
2014-05-15 12:02:17 +02:00
Derk-Jan Hartman 5233d0781f Make the toolbar and dialogs enabled by default.
I think that after 3 years we can assume that people who install
WikiEditor, want at least the toolbar and the dialogs enabled by
default on Wikipedia.

Bug: 34410
Change-Id: Ia13e6879c8633fc916ee9fb8e2495f89c2098fdb
2014-05-10 09:49:03 +02:00
Derk-Jan Hartman f0505e6dee Prevent style jumping in WikiEditor
Add a new styles module. This module makes sure that the textarea is
already properly styled (jumping lineheight bug) before we start the
JS. Also hide the toolbar before it's styles have finished loading, so
you don't see it being constructed on the fly. Move inline styling for
the old toolbar into this stylesheet as well.

Bug: 47708
Change-Id: I40bec0a24dbd295db301e7faefb93d8991981acb
2014-05-06 15:03:01 +02:00
Chad Horohoe 1be7716488 delayedBind isn't used anymore (nor does it exist)
Change-Id: I9397c6e210c4b21877605552720aa1708d7c5efb
2014-04-14 13:23:35 -07:00
Derk-Jan Hartman 952d6b9d8f WikiEditor: Remove unmaintained beta iframe mode
Change-Id: I2d7369116b92d674d791e420750a906a17a46bac
2014-04-03 17:20:49 +02:00
Derk-Jan Hartman 55929241a3 WikiEditor: Remove unmaintained highlight plugin
Change-Id: I9740a1197209f177217b034e8b94a90b3905a560
2014-04-03 17:12:07 +02:00
Derk-Jan Hartman e53521b32b WikiEditor: Remove unmaintained template editor modules
Change-Id: I47119d6cfdde4b40ff5b07be0c7d327b80598142
2014-04-03 17:11:10 +02:00
Derk-Jan Hartman 9bb94e8319 WikiEditor: Remove old unmaintained ToC module
Change-Id: I0f53a68e50fc950d7f407ee81b2bf0d81ef4948d
2014-04-03 17:02:32 +02:00
Siebrand Mazeland 11f0e1ab32 Migrate to JSON i18n
Procedure per https://www.mediawiki.org/wiki/Manual:GenerateJsonI18n.php
with shim.

Change-Id: Id90e104793d3ca8243d0ef918b9bc91cf474c36d
2014-03-29 17:14:05 +01:00
Tina Johnson 2730a2388a Removed indentation button from WikiEditor toolbar.
Removed the button,image and label messages.

Bug: 24489
Change-Id: Iab7eeb3c780f9436cc8cd99b6ad21ebac8a450e2
2013-11-09 19:30:33 +05:30
Krenair c8d0280517 Warn if you try to link to a disambiguation page
As marked by the Disambiguator extension.

Bug: 50160
Change-Id: I8c5a52c74fa1bc83c662d748731f96bcd91374d0
2013-07-15 13:47:16 -07:00
Ori Livneh 61205be62a Remove ClickTracking calls
ClickTracking is deprecated; the config var gating this behavior is set
to false; the data is going to /dev/null; no one is interested in
analyzing it. I think it's dead, Jim.

Change-Id: I71ea8c174e5e38b28f128ccd380ed2a25ad50606
2013-03-27 13:41:05 -07:00
Siebrand Mazeland e16457ce03 Add plural support for $1 in 'wikieditor-toolbar-tool-replace-success'
Change-Id: Id6ea6a80ed5a583008f13385aa7a04f7d865f838
2012-12-29 00:55:20 +01:00
Kaldari 27013f26e5 (bug 40735) Enabling editors to distinguish dashes in the WikiEditor
Right now, the Special Characters interface in WikiEditor shows all
characters in a monospace font which makes it especially difficult to
distinguish the different dash characters. The solution implemented
in this change is to add title tooltips to the following characters:
en dash, em dash, minus sign. The title tooltips are localizable and
can be added to any other characters as needed. If we eventually want
to add title tooltips to all the characters, we should come up with a
config shortcut like we're using for Hebrew vowels.

Change-Id: I7eb207acda045a868ec4c625c39bfd3d1f78ea17
2012-10-16 16:26:04 -07:00
Eranroz 8cf557addf Fix for bug 38827. Setting thumb as default format
This patch sets the "thumb" format as the default format for images added
using wikieditor toolbar, with or without dialogs enabled.

Change-Id: I707b02c63b7253bd29b960a58c0fc10e1d013fb4
2012-08-19 22:02:05 +03:00
Eranroz d0654ef864 (bug 24172) Adding dialog for file, (bug 24114) localize REDIRECT
Fix for bug 24172, by extending the wikieditor with a file
dialog (like the table and link dialog) for adding files with exended
syntax.
The added syntax is localised. This also fixes bug 24114, and the redirect
button now adds localised magic word.

Change-Id: I5950b530ab8c55aeba4b579cc80ce863f228d373
2012-07-27 00:59:23 -07:00
शंतनू 5622bdb5e1 Fix for bug 35111
Added support Devanagari characters in the WikiEditor. This includes all
characters as per http://unicode.org/charts/PDF/U0900.pdf

Change-Id: Iecab40aaf024c4ee40db142373ee94d90507b9c2
2012-05-20 18:58:42 +05:30
srikanthlogic 2dc745c7ef Adding Tamil numerals special character insertion toolbar.
Patchset 2: (Roan) Fix indentation to use tabs instead of spaces

Change-Id: Ia55da864a01a0adc6ac15d5c132832b11a4d94c2
2012-04-17 14:20:00 -07:00
Roan Kattouw f26acc15c7 Add a configuration variable for disabling tracking clicks on the toolbar buttons 2012-02-23 22:29:37 +00:00
Benny Situ 0609dffdf3 fix for bug34431 - Disable the old toolbar if the new toolbar is enabled 2012-02-17 22:13:11 +00:00
Sam Reed 8262e1db9a Remove trailing whitespace
Fix documentation

Remove unused global
2012-01-31 20:19:22 +00:00
Brion Vibber f3a80cfd9f Update a butt-ton of extension about URLs to point to https://www.mediawiki.org/ 2011-12-13 23:49:33 +00:00
Roan Kattouw 432415b129 Followup r96944: rename "Replace next" button to "Replace" cause that's what it does now 2011-10-31 08:38:35 +00:00
Roan Kattouw bf8858349b WikiEditor: Fix bug where ext.wikiEditor would load and wrap the textarea even if the toolbar was disabled. This has been reported to me on IRC but I'm not aware of any bug report in BZ 2011-09-29 19:04:54 +00:00
Roan Kattouw d50f8ab6ff (bug 31069) WikiEditor toolbar cannot be disabled. Was caused by hideSig (a module that is globally enabled) unnecessarily depending on ext.wikiEditor.toolbar 2011-09-21 13:54:13 +00:00
Siebrand Mazeland cc71ec5354 * bump version to 0.3.1
* stylize.php
2011-09-13 08:56:32 +00:00
Siebrand Mazeland 85ad75bc8c (bug 30611) Improve WikiEditor localization for Arabic script languages. Patch by Amir E. Aharoni.
Split the Arabic section in jquery.wikiEditor.toolbar.config.js into Arabic and Arabic extended. Arabic contains the core 28-letter alphabet, special letters for the Arabic language, vowels, punctuation and digits. "Arabic extended" contains most of the other letters and signs that are used by languages such as Arabic, Urdu, Balochi, etc.
2011-08-30 16:22:26 +00:00
Krinkle ef0280f74b Bugfix: Localization wasn't loaded LQT-enabled (inexisting) User_talk-pages. Caused the entire editor to be filled with <foobar>. This fixes it. 2011-07-05 16:52:29 +00:00
Jan Paul Posma f1cf835405 The hiding of signature button in the WikiEditor for the main namespace is now actually defaults to true, as intended in my previous commit (r86703) 2011-04-22 12:24:24 +00:00
Jan Paul Posma 4c8f157f1a Fixes bug 28149 (but with default to true) 2011-04-22 12:10:18 +00:00
Sam Reed e4f000220d Update URL to point at http://www.mediawiki.org/wiki/Extension:WikiEditor 2011-04-01 19:51:16 +00:00
Trevor Parscal 40d6b87087 Added notice about which modules are experimental. 2011-03-21 20:48:17 +00:00
Roan Kattouw 534309c1d5 (bug 27515) Reintroduce JS variables wgVectorEnabledModules and wgWikiEditorEnabledModules for backwards compatibility 2011-03-13 10:55:33 +00:00
Roan Kattouw 24330513f7 Followup r83734 (ResourceLoaderGetConfigVars instead of MakeGlobalVariablesScript in Vector): do the same for WikiEditor 2011-03-13 10:51:45 +00:00
Michael Dale 203a9133a2 removed addMediaWizard gadget ( should be supported via dedicated extension 'AddMediaWizard' ) 2011-03-11 21:42:03 +00:00
Jan Paul Posma 8ca58dd46b A bit of a reorganisation that fixes bug 27164. Basically the extensive configuration in the ext.wikieditor.* functions is moved to the jquery plugins, to be able to use these configurations in other extensions which don't have a #wpTextbox1.
Please review this to check if this is the right way to do it!
2011-02-24 01:45:55 +00:00
Roan Kattouw ee3a8e68b0 WikiEditor: Add missing message and shut up a source of JS errors 2011-02-23 20:50:52 +00:00
Trevor Parscal 1f17742ba1 Changed the way the toolbar creates it's file tool - which inserts [[File:<selection>]] - now we are using the wgFormattedNamespaces configuration. wikieditor-toolbar-tool-file-pre is not needed anymore, and has been removed. 2011-01-10 22:41:17 +00:00
Roan Kattouw 07ae77530c Break WikiEditor's toolbar messages out into a separate module so LiquidThreads can load them without having to load all of ext.wikiEditor (doing the latter causes the toolbar to appear twice; previously LQT loaded just jquery.wikiEditor but that way it didn't get the messages). This might not be the cleanest fix, but it works. 2011-01-07 16:05:20 +00:00
Tim Starling 81f292841c Updated extensions for r77011:
* I left MwEmbed alone since it was scary.
* I left the half-completed commented-out ResourceLoader code in Maps as it was
* PrefSwitch was apparently broken, with a typo in remoteBasePath.
* ClickTracking and ProofreadPage now demostrate two different styles of multi-module registration. Choose which one you prefer.
* SemanticMediaWiki/SMW.hooks.php became empty and was deleted.
* Tested using a special script that includes extension setup files and checks $wgResourceModules for correctness.
2010-11-19 13:59:34 +00:00
Trevor Parscal cb6ff96431 Got more dialogs working again 2010-10-04 21:08:41 +00:00