Commit graph

230 commits

Author SHA1 Message Date
jenkins-bot ebb75b8815 Merge "Toolbar: Reset lineheight for character cells" 2015-01-09 23:14:13 +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
Derk-Jan Hartman 2946fcd56d Remove reference to magnify-clip.png
magnify-clip.png was recently removed from the core styles directory,
but the Help panel of the WikiEditor still references it by way of i18n
message: wikieditor-toolbar-help-content-file-result

Also remove unused local copy

Bug: T85920
Change-Id: Icc17092c0f854360b2f2999b8f153827bf194c0c
2015-01-07 10:19:35 +01:00
Derk-Jan Hartman 4e65f2b204 Toolbar: Reset lineheight for character cells
Bug: T78354
Change-Id: I2f004a29b19d5629ba78a94b4cd26bb91d5a8747
2015-01-06 17:41:16 +01:00
Derk-Jan Hartman 3e04196b79 Toolbar help: Make magic word from help string a param
Instead of having this magic word in the translation message, make it a
parameter of the translation message and retrieve it from
wgWikiEditorMagicWords.

Bug: T40831
Change-Id: Id3155221aa61bc86da2d90000dedab36cbe9dd96
2014-12-08 12:22:49 +01:00
Fomafix bfe2fc6c4e Workaround for a scrolling bug in IE8 on resize
Bug: T63910
Change-Id: I6dacc1ed2f2fdf4ea615a477b711dc78667bae68
2014-12-06 12:40:50 +00:00
jenkins-bot ea569a993a Merge "Remove previewDialog" 2014-12-05 13:03:26 +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
Derk-Jan Hartman 4af678cdd2 Preview: Add content clears after side-by-side preview
Change-Id: Ib6147e38aa98a5498300513da3557ce74af1252d
2014-11-10 21:02:43 +01:00
Derk-Jan Hartman c618166249 Revert "Add SVG versions of toolbar icons"
There were issues with shadows, and the sprite creating weird
offsetted buttons on Chrome.
Subsequent attempts have been incomplete at solving these, so
reverting this and hoping that the next person to attempt a conversion
to SVG is more successful.

This reverts commit e027051c58.

Bug: 35342
Change-Id: Id296899a2c3746957c17068ab17ca8266f6ff0d3
2014-11-04 22:21:05 +00:00
Florianschmidtwelzow e7251d7dc5 Remove padding from Textbox
The padding for wpTextbox1 (on Editpage) conflicts with mediawikui.

Bug: 70194
Change-Id: I251256ef17a4ac978cb2d7bbd62daaa84fcc4843
2014-09-14 15:44:10 +02:00
Derk-Jan Hartman 70194d574e Dialogs: Reset values of file insertion dialog properly
Bug: 67111
Change-Id: I63a5cac9108cf9e6966964347407cc63fc0fb9b5
2014-08-14 22:02:16 +02:00
jenkins-bot 388482c0b8 Merge "Enable WikiEditor toolbar on iOS" 2014-06-03 18:59:58 +00:00
Derk-Jan Hartman f64a3c26c6 Enable WikiEditor toolbar on iOS
Since we now have a full fledged mobile solution, I think we should
strive to have the site 'proper' work as much on any platform as
possible.

WikiEditor traditionally was not loaded on iOS.
No one really knows why this was not loaded. It can have been bugs or
just to 'slim down'. It works on iOS 6 and iOS 7, so for that reason
I'm now changing the blacklist in this respect. It might work with
earlier versions, but I can't really test that right now.

Bug: 63277
Change-Id: I605eb0e093b84203f1157d9e20788eaa0040ddbf
2014-05-26 14:34:17 +00:00
Derk-Jan Hartman 44c56d482c Convert from show()/hide() to using classes
jQuery's show/hide/fadeIn/fadeOut methods makes changes to the
style attributes of elements. That makes them rather hard to override
their visibility, without adding an entire API to the module to do so.

This replaces the default animations with one using classes to control
visibility and only animates the animatable properties using
the style attributes.

Follow-up to: Iadaae3fb9ae1899e12605d653b2688616b8f7c40

Change-Id: I4652ade66c6de864ee3e74b3817ed9b93967ce3d
2014-05-23 16:06:16 +02:00
Derk-Jan Hartman 346a100248 Also remove NToC and TemplateEditor images
In I0f53a68e50fc950d7f407ee81b2bf0d81ef4948d and
I47119d6cfdde4b40ff5b07be0c7d327b80598142 I forgot to remove the images
of the corresponding modules.

Change-Id: I8de59f6ce54d0cc7f67f56853386d4338c693b98
2014-05-14 15:54:50 +02:00
Timo Tijhof b965e0af4f jquery.wikiEditor.toolbar: Clean up target variable
Follows-up 5667dfcd54.

Change-Id: Ib2365aa6ab626717d346ab2e299c174bebfff506
2014-05-09 12:26:15 +02:00
jenkins-bot 887dcfcbc9 Merge "Repair removeFromToolbar() to handle image buttons" 2014-05-09 10:23:04 +00:00
jenkins-bot ba9cbdaa35 Merge "Prevent style jumping in WikiEditor" 2014-05-06 16:53:46 +00: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
jenkins-bot f99ef52991 Merge "Add SVG versions of toolbar icons" 2014-05-06 11:53:33 +00:00
Fomafix cf74f4e0a0 Prevent conflicts with predefined names
Bug: 64896
Change-Id: I67ea669a074317f44eb09cf759c0121bad259b3c
2014-05-05 13:51:10 +00:00
jenkins-bot 996f0d07d7 Merge "Ensure that the property exists" 2014-05-05 10:18:39 +00:00
Derk-Jan Hartman 5667dfcd54 Repair removeFromToolbar() to handle image buttons
Bug: 29440
Change-Id: Ic30af1a1d5842a8f330344eb4a10ecbdc2606fc5
2014-05-05 09:06:57 +00:00
Timo Tijhof d0ebd8f812 jquery.wikiEditor.preview: Clean up
* Rename 'collection' to 'loadmodules'.
* Consistently close parentheses and brackets at the same
  indentation level as they were opened.
* Use $.ajax directly instead of $.post, especially the fourth
  argument to $.post makes it hard to read.
* Use promise interface of $.ajax and $.post instead of the
  (deprecated) callback parameter.

Change-Id: I48924c9a1ce29829f8994be05c46d5563b2c25d6
2014-05-04 15:52:04 +02:00
Derk-Jan Hartman 0be6642d42 WikiEditor: Make JS preview load required modules
Change-Id: I5cc3c8577ab088eeba9e6f4ac78411c31ee38fa9
2014-05-04 14:27:04 +02:00
Derk-Jan Hartman 4936de4f3c WikiEditor: Fix API warning in preview requests
Change-Id: I8e8b344da2c39dfc107525561078947708c75868
2014-05-04 13:42:07 +02:00
m4tx e027051c58 Add SVG versions of toolbar icons
Bug: 35342
Change-Id: I3661eb945f79fb59600c5d85cc259e61f115d5ab
2014-05-01 21:42:36 +02:00
Fomafix cfcfa69fe4 Apply coding conventions for JavaScript
Change-Id: Ibae64ca7aa52c2283ff81bd942be80c83a4089f7
2014-04-30 10:59:01 +00:00
Fomafix a9fffc62bc Ensure that the property exists
Bug: 64648
Change-Id: Ia4fa64e86286bbd567c4c46e2d79028546ed7e3d
2014-04-30 06:36:02 +00:00
jenkins-bot c964783792 Merge "Revert "Revert "Preserve textarea state when building WikiEditor UI""" 2014-04-29 22:45:57 +00:00
Mwalker b5696dc435 Revert "Revert "Preserve textarea state when building WikiEditor UI""
Ib97f47ef1d66420682bd429c9c12e66c3392e77d Didn't cause
problems so this is now safe to reapply (to wmf2).

This reverts commit 908e7cc56c.

Change-Id: I510536959b58ff0adacd7908f6150c95bfdb3ec1
2014-04-29 22:43:32 +00:00
jenkins-bot 38b2328296 Merge "Revert "Preserve textarea state when building WikiEditor UI"" 2014-04-25 20:12:25 +00:00
Mwalker 908e7cc56c Revert "Preserve textarea state when building WikiEditor UI"
Sadly this caused bug 64289; so we're going to revert this for now;
then redeploy this and Ib97f47ef1d66420682bd429c9c12e66c3392e77d
in one of the swats next week.

This reverts commit effd98be7e.

Change-Id: Idde3e51e894f8c92f47fb06f0cf08d01e82ccb48
2014-04-25 20:12:09 +00:00
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