Commit graph

49 commits

Author SHA1 Message Date
Sam Wilson 56b4ba8476 Realtime Preview: remove Beta Feature and onboarding popup
Delete almost all code realting to the onboarding popup (blue
pulsating dot) and Beta Feature. Leave only one line to delete
any existing localStorage item that was used to remember the
dismissal of the onboarding popup.

Bug: T327515
Change-Id: I8d05e143858a2269dd6f3302dcc6cee6b0855ffd
2023-03-17 15:22:32 +08:00
Thiemo Kreuz 7573a7dbad Remove all unused "loading" code, messages and animations
The CSS was already unused when the extension was created in 2010.
A comment that still mentioned the CSS class was removed via
I0798864 in 2022.

The message is unused since I9fb7e66, that was in 2021.

Change-Id: I25cd31efc4ee61ff3f857c280b5cd18c3ae4bd00
2022-04-21 15:29:15 +02:00
MusikAnimal b8bdd64ee5 Realtime Preview: add as a Beta Feature
For MW installations where BetaFeatures is not available, Realtime
Preview is enabled solely with the $wgWikiEditorRealtimePreview
configuration setting.

Bug: T304596
Change-Id: I880022883bf526a2aef237f4a75e790b0f9bd4e5
2022-04-06 13:45:44 -04:00
Sam Wilson 6384498d75 Switch to OOUI TitleInputWidget for the link-inserter
In order to get a better look-up experience (images, description,
redirects, and disambigutation pages listed last), swich from
a custom title-autocomplete input (that used jquery.suggestions)
to OOUI's standard one (which is used in a bunch of other places
in MediaWiki).

This means a fair bit of code can be deleted from
jquery.wikiEditor.dialogs.config.js, and some of it moved to
the new OOUI classes.

This patch aims to be the minimum required, and so leaves a few
things for subsequent patches (such as converting the other parts
of the insert-link dialog to OOUI).

Bug: T289214
Change-Id: I9fb7e66bf925eb9a8260d6245d2a7db54a7a2fec
2021-10-08 12:43:55 +00:00
Sam Wilson b0904ce4f1 Remove unused image: insert-link-error.png
This image appears to have never been used, according to Git log searching.

Bug: T289214
Change-Id: I230db9ea85e0b3305c9bcc84531db21e93fecf4e
2021-09-01 16:29:05 +08:00
Ed Sanders ec78f1a2b6 Replace arrow variants with CSS transformations
* Allows us to briefly animate the transition between
  expanded and collapsed
* Remove the left/right-arrows, and just use a single
  down-arrow with rotations.
* Remove the up-arrow used by the dropdown, we don't
  use that elsewhere in WMUI.
* Remove PNG fallback as `transform` works only with IE 9+
  and we're not supporting WikiEditor on Grade C browsers.

Change-Id: I29ab0c35b890689bdea8de5f6bbeef0948483fa5
2020-03-26 16:20:36 -07:00
Ed Sanders d861bf41de Use caret-style arrow indicator
This style of indicator is used everywhere else (Vector, WMUI, Apex).

Bug: T223155
Change-Id: I0792ee718656943a2938c2d027f8effe71a54002
2020-02-04 16:58:18 -08:00
Fomafix d2e683f230 Add arrow-up as indicator for the pinned menu
Change-Id: I9a8afd8ec8f17c867f81889524a64b96b1d10568
2019-06-18 18:09:25 +02:00
Fomafix df7fa37a0f Round SVG coordinates to whole integer
Change-Id: If8ddf7dba9807a8a108f0841697385f1a97158e4
2019-03-17 11:34:42 +01:00
Ed Sanders 72e48c26e0 Convert remaining tools to OOUI
Replaces the insert and advanced-insert groups, which
are currently multi-colour icons.

Drops the button-sprite + offset mode, according to
mwgrep there are no other users of this.

Bug: T191031
Bug: T143508
Change-Id: I7032f98908a591ea5c9d3dbbb7616e2c10bbfc80
2018-04-11 15:50:23 +01:00
Ed Sanders bfafde341f Use OOUI icons for bold & italic
Bug: T191031
Change-Id: I3beca4122e8b0514808ccffeb4042f1965e9f056
2018-04-04 20:13:03 +01:00
jenkins-bot b8b79c19ec Merge "Use OOUI icons for advanced format & size tools" 2018-04-03 19:42:23 +00:00
jenkins-bot c21d53cabb Merge "Replace toolbar background image with CSS linear gradient" 2018-04-03 19:33:33 +00:00
Ed Sanders 5ec5da115e Replace toolbar background image with CSS linear gradient
Change-Id: I1d72be9119e85fd9957ba0fb86f22a9a5cc2edca
2018-03-30 15:59:36 +01:00
Ed Sanders 38c91e7512 Remove unused format-indent icons
Change-Id: I2c12b77129b86268191173292b82f2051d85e795
2018-03-30 00:22:13 +01:00
Ed Sanders 335f189460 Use OOUI icons for advanced format & size tools
Bug: T191031
Change-Id: Ifb6c166ecfe082414677420939106d55a5715bb2
2018-03-29 15:53:15 +01:00
Ed Sanders accdb762f1 Remove never-used tools
Five tools are registered in toolbar.config, then overridden
in dialogs.config with more advanced verisons. As the dialog
module is no longer optional, the simplified versions are
no longer accessible.

Change-Id: Ib66025d209a36fb821c5619cbfe63330fb6c9a1f
2018-03-21 17:28:32 +00:00
jenkins-bot a9aeec920d Merge "Revert "Compress PNGs with zopflipng"" 2016-02-28 00:29:33 +00:00
Legoktm c950e0a53f Revert "Compress PNGs with zopflipng"
This reverts commit f50c6d0bb7.

Change-Id: I62e486f949bf0940e109ae5b1dabe098cbcb4c67
2016-02-28 00:07:54 +00:00
Fomafix ce96b0c72e Remove loading spinner
Since e8d37102 the loading spinner is not visible, because all actions
relating to it are in the same render step of the browser.

The loading occurs fast enough now, that we also don't want to show an
intermediate spinner.

Change-Id: Id2a3584deed2ecde807d8f354341dd6868b10009
2016-02-21 20:57:44 +00:00
Ori Livneh f50c6d0bb7 Compress PNGs with zopflipng
Zopfli is the most efficient DEFLATE compression algorithm, trading run-time
performance for file sizes that are typically 3-8% smaller than those produced
by zlib with the maximum compression setting. Its output is Deflate-compatible,
so no specialized decoder is needed.

This change was created by running zopflipng against all the PNG files in this
repository. The exact invocation was:

  git ls-files --exclude-per-directory=.gitignore -- '*.png' \|
    parallel zopflipng -m -y {} {} \;

Files which zopflipng was not able to compress more efficiently were left unmodified.

Bug: T127608
Change-Id: I56c6870e86f9b359fc8c025caf6917560ebb606b
2016-02-21 02:04:49 +00:00
Ori Livneh 77f5499cfc Compress PNGs with zopflipng
Zopfli is the most efficient DEFLATE compression algorithm, trading run-time
performance for file sizes that are typically 3-8% smaller than those produced
by zlib with the maximum compression setting. Its output is Deflate-compatible,
so no specialized decoder is needed.

This change was created by running zopflipng against all the PNG files in this
repository. The exact invocation was:

  git ls-files --exclude-per-directory=.gitignore -- '*.png' \|
    parallel zopflipng -m -y {} {} \;

Files which zopflipng was not able to compress more efficiently were left unmodified.

Bug: T127608
Change-Id: Ic0aa0017f97411a282b54d51217a019871a93433
2016-02-21 00:44:19 +00:00
Paladox 38d28d5631 Add format-bold-Iab image for lang ce
Also use the icon for Chechen. Also requested by Bug: T119716

Add these icons for lang ce

png

https://commons.wikimedia.org/wiki/File:Toolbaricon_bold_%D3%80%D0%B0%D1%8C.png

svg

https://commons.wikimedia.org/wiki/File:Toolbaricon_bold_%D3%80%D0%B0%D1%8C.svg

This was requested at
https://ru.wikipedia.org/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F:%D0%A4%D0%BE%D1%80%D1%83%D0%BC/%D0%A2%D0%B5%D1%85%D0%BD%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B8%D0%B9#.D0.9F.D0.B0.D0.BD.D0.B5.D0.BB.D1.8C

Bug: T119716
Change-Id: I4b41aa53138eae660ebeb9b1d9f6f547cfcca7a4
2015-12-27 20:54:23 +00:00
paladox d4b293587c Updated insert-signature image
* Some users have reported that they did not like the new colour for the wirting. New colour changed back to black.

Author is Roul P

Compressed using https://compressor.io/compress

Change-Id: Ieda03d57197bc6c2dd0361e942a819732876ac36
2015-07-14 08:31:17 +00:00
paladox 28aa2ff1d2 WikiEditor: Add svg images
* Re adds svg images that were reverted earler for causing problems.
* Adds some missing rtl svg images.
* Fixes insert-ilink.svg that was causing it to not show in some browsers eg internet explorer.

User Perhelion Fixed the problem in insert-ilink.svg and insert-signature.svg. I just added it to button-sprite.svg.

Related less file adding svg to it is at https://gerrit.wikimedia.org/r/#/c/195529/

Bug: T37342
Change-Id: I14482c7b66901609689bf9ddb67b8d2add937612
2015-06-23 14:45:03 +01: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 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
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
m4tx e027051c58 Add SVG versions of toolbar icons
Bug: 35342
Change-Id: I3661eb945f79fb59600c5d85cc259e61f115d5ab
2014-05-01 21:42:36 +02:00
jenkins-bot 8f294c5427 Merge "Removed indentation button from WikiEditor toolbar." 2014-03-12 12:04:39 +00: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
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
jenkins-bot 4b395a27cf Merge "Optimize pngs" 2013-04-02 22:29:35 +00:00
Niklas Laxström 31459ac555 Optimize pngs
Change-Id: Ic732069c0f25d4f5cdd0f1b890dc1b86aeb6c1ee
2013-03-13 10:04:45 +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
Krinkle d8f32148be Merge "Georgian bold toolbar icon reworked. Followed by general style." 2013-01-07 20:15:42 +00:00
Reedy 743d550709 Merge "Remove source images and just store compressed images in the folders" 2013-01-07 13:53:39 +00:00
Siebrand 2481f782d7 Merge "Losslessly compress images" 2013-01-04 14:53:39 +00:00
Reedy 80a5a5964e Losslessly compress images
Change-Id: Ia4f690ec92e269289ff2c3df0cb3e30c26ce85a0
2013-01-03 01:58:06 +00:00
Reedy 3223a71d5a Remove source images and just store compressed images in the folders
Change-Id: Ia107210dfca766ad4a8de4a469638a5c7d877c6d
2013-01-03 01:56:56 +00:00
Xwybylty Soslan 87b0c0dfc4 Georgian bold toolbar icon reworked. Followed by general style.
Change-Id: Iaf59456674566e5a7ee6da9fb788838dd14bc4aa
2013-01-03 02:08:38 +04:00
Xwybylty Soslan 73c92a3ca2 Added toolbar icon for Ossetian language. Added Ossetian to toolbar configuration.
Change-Id: Icd0086d3c8944ae33c9a25801abecf67bdbeb7af
2013-01-03 01:17:45 +04:00
Sam Reed 0514d49717 More image compression for extensions 2012-03-01 02:24:49 +00:00
Jan Paul Posma 6e998359f0 Fixes bug 24088: WikiEditor toolbar RTL icons 2011-04-25 12:26:20 +00:00
Leo Koppelkamm 724dccc131 Fix jumping of textbox in link-dialog. This happened when the link was being checked and the too large spinner image pushed the field down 2011-04-21 08:59:13 +00:00
Trevor Parscal 81bb906c99 Removed RTL rules and IE6 stuff from toolbar css, ResourceLoader uses CSSJanus to auto-flip the rules, and IE6 is blacklisted anyways. 2011-01-11 23:41:23 +00:00
Trevor Parscal 81510294e1 Moved some images to the vector jquery ui skin, rather than keeping them here as WikiEditor only customizations 2010-09-16 21:40:56 +00:00
Trevor Parscal 9d278e8dee Copied over all the resources needed to make WikiEditor stand on it's own two feet. Lots more to do as far as organizing and fleshing out the extensions's PHP bits. 2010-09-15 03:08:35 +00:00