Commit graph

195 commits

Author SHA1 Message Date
jenkins-bot d4a994e146 Merge "Allow adaptive height of the toolbar sections" 2014-04-23 16:41:12 +00:00
jenkins-bot 3bd860d220 Merge "Cleanup borders of wikiEditor" 2014-04-16 19:50:20 +00:00
Derk-Jan Hartman effd98be7e Preserve textarea state when building WikiEditor UI
When we are wrapping the textarea in the Editor UI, the focus state,
cursor position and the scrollposition might get lost. This is
especially annoying on slower machines, where users might have started
using the textarea before the WikiEditor UI was constructed.

Bug: 41911
Change-Id: Ie472c6c88d98f7ba89873a2db73463ef01bd995a
2014-04-16 08:40:19 +02:00
Derk-Jan Hartman 12e5de632e Cleanup borders of wikiEditor
We had some crazy stuff here with negative margins, border boxes and
what not. There were some problems with IE versions, zooming in and out
in pages and with the side by side preview.

This should take care of those. Mostly it moves the borders inside the
elements that are 100%. This was also required because of the
side-by-side preview which was using a dirty trick to hide the border at
the top

Bug: 26828
Change-Id: I3c3466fac53df3e79de6f12f404005e55409fa7c
2014-04-08 15:32:00 +00:00
Derk-Jan Hartman eacd8b7fcf Allow adaptive height of the toolbar sections
This makes sure that on narrow page views, it's contents won't bleed
into the textarea.

Bug: 37392
Change-Id: Ia14b354a5a2de049d219e735795a9bd9f558f660
2014-04-08 10:31:01 +02:00
jenkins-bot 4ccd57d34c Merge "Fix broken span of label in WikiEditor toolbar" 2014-04-07 22:08:02 +00:00
Derk-Jan Hartman 6c6c92444d Fix broken span of label in WikiEditor toolbar
Bug: 47506
Change-Id: If2146b20319c76fcd0081d4e5e0beb6016a681ed
2014-04-08 00:01:03 +02:00
jenkins-bot ee141c9a3e Merge "Fix infinite spinner in JS version of show changes" 2014-04-07 17:28:31 +00:00
Derk-Jan Hartman 36588027e5 Fix infinite spinner in JS version of show changes
Empty content causes the hiding of the spinner to be skipped.

Bug: 38502
Change-Id: Iefb224877976d463a5bb7b92a8e09fe958cd16c2
2014-04-07 18:52:19 +02:00
Derk-Jan Hartman eb74ecddcd Toolbar: use CSS instead of valign on toolbar table
Bug: 39726
Change-Id: I31f1e685052f8f9eef9061564a75fd022c95281a
2014-04-07 17:39:48 +02: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
Derk-Jan Hartman 39e3676b35 Revert "Remove unneeded show() in WikiEditor toolbar"
because apparently we do have empty tools boxes. Alternative
implementation in I4652ade66c6de864ee3e74b3817ed9b93967ce3d

This reverts commit dd46fc383b.

Change-Id: I358c34d63261989d49b0a4156cbc05b544727d5c
2014-03-24 22:30:55 +01:00
jenkins-bot 713fd56113 Merge "Fix border css" 2014-03-22 21:52:40 +00:00
Niklas Laxström a80e2f9d2b Fix border css
Inspired by Ia244a5070

Change-Id: I16319fe49b1c359bc6b57fbaa8deea8154847d7c
2014-03-22 17:44:25 +00:00
jenkins-bot 4291b563c2 Merge "Remove unneeded show() in WikiEditor toolbar" 2014-03-22 01:55:19 +00:00
Thiemo Mättig 772e39caf2 Unify coding style of jQuery( '<element>' ) calls
According to the jQuery documentation (and code) all kinds of
$( '<element>' )
$( '<element/>' )
$( '<element />' )
$( '<element></element>' )
are identical. So yes, this patch does not change anything. All it
does is removing characters that are ignored anyway. Using the same
style everywhere makes the code easier to read and understand and
may save a few bytes when it is gzipped.

The current WikiEditor code contains 67 usages of that jQuery call.
Only very few of them are not in the most simple <element> style.

Personally I consider the style <div/> confusing since a <div> can
not be a void element.

Change-Id: I816b4cccc9ee329e9bcdd9bd2353e5653fd10c36
2014-03-17 22:11:12 +01:00
Derk-Jan Hartman dd46fc383b Remove unneeded show() in WikiEditor toolbar
This line forces sections to be visible after you edit the toolbar.
There is no apparent reason why this should be necessary. It has been
in there almost from the start, but doesn't seem to be used

Change-Id: Iadaae3fb9ae1899e12605d653b2688616b8f7c40
2014-03-16 23:48:14 +01:00
jenkins-bot 8f294c5427 Merge "Removed indentation button from WikiEditor toolbar." 2014-03-12 12:04:39 +00:00
Fomafix 895f737b87 Workaround for a scrolling bug in IE8
Bug: 61908
Change-Id: I69dbfa267b26916628181553b213f05add909c99
2014-02-25 12:41:12 +00:00
Ori Livneh f5b2b18a01 mw.loader#version -> mw.loader#getVersion
mw.loader#version was removed in I57d340015.

Change-Id: Icb8e591c379b083cfc5f05a1a24320e0f13f7d12
2014-02-18 14:54:29 -08:00
Xelgen 861fe4049b Adding Armenian icons for formatting buttons
This commit adds Armenian icons for Bold and Italic buttons.

Icons were created by me, according to guide at
https://usability.wikimedia.org/wiki/Text_format_icons

Links to icons used on Commons:
http://commons.wikimedia.org/wiki/File:Toolbaricon_bold_%D4%B9.png
http://commons.wikimedia.org/wiki/File:Toolbaricon_italic_%D5%87.png

Glyphs are from font based on Droid Serif,
developed by Ruben Tarumian (Hakobian) http://tarumian.am,
was released PD, for project of http://hy.am funded by OSI.

If my understanding is right those icons had to be described only
in jquery.wikiEditor.toolbar.config.js file.

Change-Id: I6afa67d4d87a359b4f596840873d8f142d85b8f9
2014-02-11 23:17:07 +00:00
umherirrender 37a1deb799 document.selection is undefined in IE11
IE11 replaced document.selection by window.getSelection, which breaks
dialogs in WikiEditor, because document.selection.createRange was
accessed without check. Inserting this check unbreaks the dialogs.

Bug: 57489
Change-Id: I70d49fb43bbf7602f43e9a8086ecd32027cb6d6f
2014-01-05 17:49:54 +01:00
Timo Tijhof ab13c162cf jquery.wikiEditor.iframe: Restore function signatures
Follows-up 1a2daca06a, which broke this file due to
a bad find/replace action.

Change-Id: Ia6db450296ac579dade2ec4ff116e2519d69c6d3
2013-11-22 12:55:25 +00:00
Timo Tijhof 1a2daca06a Kranitor: Make JSHint pass
eqeqeq:
* Change loose comparisons to strict comparisons where
  it seems safe to use a strict comparision instead.
  Mostly comparisons to strings or objects, and comparisons to
  numbers where the other value is known to be a number, too.
  E.g. foo == 'string', bar == node, indexOf() != -1.
* Add eqeqeq:false to files where there are non-obvious usages
  left.

onevar, quotmark:
* Disabled in files with lots of style violations.

unused:
* Remove unused variables that have no side-effects in their
  assigned expression.

Coding style cleanups on affected lines where trivial.

Change-Id: I5db155a632740e24cb52dba2177c7fc35d5aebd5
2013-11-10 07:36:03 +00: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
goibhniu bddd21b300 Peserve jQuery references to avoid conflicts
* Added closures for jQuery where missing.
* Added closures for mediaWiki where missing.
* Using ready( $ ) where possible.
* Removed empty CSS block.

Change-Id: Ifdd4b10063221a4967d812eafd43858623ec5d28
2013-11-06 23:34:46 +01:00
jenkins-bot 8fe2f268d8 Merge "Use mediaWiki.message( ... ).plain()" 2013-09-28 12:18:39 +00:00
Helder.wiki 1b797b7f6a Use mediaWiki.message( ... ).plain()
Bug: 42107
Change-Id: Ic17aa1ff18528cec402bef08cace6987529f2782
2013-09-28 09:10:11 -03:00
jenkins-bot d83f06de1a Merge "Make edit toolbar accessible to screen readers" 2013-09-07 12:19:32 +00:00
Derk-Jan Hartman fc407956e9 Remove extra comma to avoid fatal in IE7
Followup to:I99c16f01176a954ad924a5c493e43fb47206fa4b

Change-Id: I4394b252ffee93f4647d1908c29626c20bb82366
2013-08-23 21:16:28 +02:00
umherirrender 7506688ca2 Remove extra comma to avoid fatal in IE7
jslint:
modules/jquery.wikiEditor.toolbar.config.js: line 818, col 43, Extra
comma. (it breaks older versions of IE)

Bug: 52715
Follow-Up: I8c5a52c74fa1bc83c662d748731f96bcd91374d0
Change-Id: I99c16f01176a954ad924a5c493e43fb47206fa4b
2013-08-23 15:09:15 +02:00
Marius Hoch 8679bfab53 Make edit toolbar accessible to screen readers
Removed redundant attributes, added aria-* attributes and properly
declared the links with role=button.
Tested with JAWS 14 and NVDA.

Bug: 24592
Change-Id: I27e18798d18b63655ea716eee2be1c7ab5303759
2013-08-19 12:18:22 +02:00
MatmaRex 6f8acfaf2b Hide MediaWiki's "Editing help" link, as we provide it in the toolbar
Ported from Vector extension's ext.vector.footerCleanup module, but
with less hacks. Depends on change Id9269876 in MediaWiki core.

Also remove unhelpful comments.

Bug: 43689
Change-Id: I36ecd06b6fc0cc5ce95bc43db303b1b542e6c81b
2013-07-26 12:20:08 +02:00
jenkins-bot c013c87ef1 Merge "Warn if you try to link to a disambiguation page" 2013-07-15 20:48:19 +00:00
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
addshore c3293da273 localise buttons for ky
Change-Id: I2f489142080f4541b1c76590cc18065f5bf56a7e
Bug: 38401
2013-05-27 15:53:35 +01:00
jenkins-bot b92cafd27d Merge "(Bug 45863) Set custom bold and italic buttons for Basque language" 2013-04-16 08:55:40 +00:00
Trevor Parscal 17a90bc74e Make toolbar group labels spans instead of divs
The mix of <div> and <a> tags, being floated left inside a floated left
group seems to cause a flow error in some browsers, which ends up
wrapping the last item in the group. The give-away to what was going on
was that this only happened for groups with labels.

While diagnosing it, I notice that the bug did not occur if the labels
were hidden (suggesting is has something to do with the label being
included in the flow of the group, not the build-out), and converting
them to spans fixed the problem.

Bug: 27698
Change-Id: I2a842a86ef77a8934095c04408b7fabbcfbb2476
2013-04-08 10:55:07 -07:00
jenkins-bot 4b395a27cf Merge "Optimize pngs" 2013-04-02 22:29:35 +00:00
jenkins-bot d33ec49f0c Merge "Remove ClickTracking calls" 2013-03-27 20:57:18 +00: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
Niklas Laxström 31459ac555 Optimize pngs
Change-Id: Ic732069c0f25d4f5cdd0f1b890dc1b86aeb6c1ee
2013-03-13 10:04:45 +00:00
Platonides 3b9ed0d5a3 (Bug 45863) Set custom bold and italic buttons for Basque language
Use L for Bold (Lodia) and E for Italic (Etzana)

Change-Id: I99848be43911845353a8b148dbc91e6b65c492e1
2013-03-08 22:19:33 +00:00
Inductiveload 86b38002cd Toolbar icons for bold L and italic E
Created by Wikimedia Commons user Inductiveload, using inkscape
and a Gimp script that emulates the actions listed at
 https://usability.wikimedia.org/wiki/Babaco_Designs/Icon_Localization

Files available under license Creative Commons Attribution 3.0 by
 https://commons.wikimedia.org/wiki/User:Inductiveload

Original files:
* https://commons.wikimedia.org/wiki/File:Toolbaricon_bold_L.png
* https://commons.wikimedia.org/wiki/File:Toolbaricon_italic_E.png

Change-Id: I86e69479ead45ab9b3b44ba4d599f8403b1abe4d
2013-03-07 22:54:50 +01:00
Platonides 1dc0daeccb (Bug 45732) Set custom bold and italic buttons for Galician language
Use N for Bold (Negra) and C for Italic (Cursiva)

Change-Id: I89423dfb5b52065bb4bd25f2a54a6b2ef8e982ea
2013-03-07 19:43:14 +01:00
jenkins-bot 85237ff3f8 Merge "(bug 42198) fix ext.wikiEditor.publish so that it actually works" 2013-01-30 11:46:10 +00:00
Matthew Flaschen ede8d1d8f1 Add jQuery event trigger for when the initial sections are done
* This is similar to wikiEditor-toolbar-buildSection-*, but for when
all of the initial sections are done.
* It allows other code to render after this vertical shift is done.

Change-Id: I4705d09b9ef90c1ab8dad93db3f91e70c5fd4d5b
2013-01-28 23:05:48 -05:00