Commit graph

53 commits

Author SHA1 Message Date
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
Fomafix edbee613fc Support fallback languages for icons
Use mw.language.getFallbackLanguageChain() to get the
fallback language chain. This chain currently always contains 'en'
as last element. Remove the last element to prevent a fallback to 'en'.

Reimplement autoIconOrOffset to correctly prefer sprite before icon.

Bug: T87247
Change-Id: I452dd45d20ea4dd542d63274b7aad0272e20ea12
2015-06-21 15:42:18 +00:00
Alex Monk fb4f71a46b Move WikiEditor's special character data and messages out to core
Core part done in If9c5cdbe

Bug: T91608
Change-Id: Ifd0ed245ca9d1209b3dad5334f3fcfca428ceeec
2015-03-27 22:46:24 +00:00
Fomafix 5c36a20623 Move hardcoded parsed thumbnail html from i18n to config
Also update the actual HTML with what the current parser outputs:
* width:104px -> width:102px (2px in addition to 100px image width)
* No more "title" attribute on the outer <a>.

And reduce duplication in the message:
* Re-use "thumbnail-more" message.
* Re-use "wikieditor-toolbar-help-content-file-caption" message.

Change-Id: I25f0763b2274ebdcf681c78af277a9be302350a1
2015-03-14 20:41:11 +01:00
Fomafix 17cb22e4f3 Use sprite as button icon where possible
The icon for italic in language 'os' exists in the sprite like for 'ru'.

Change-Id: I126b3fbc2246b485c2b7e8572037447498821e35
2015-01-21 18:31:33 +00:00
Fomafix 790a1af231 Fix whitespaces in JavaScript
* Use a singe space as whitespace.
* Remove space before colon when not used as ternary operator

Change-Id: I6391bbcf10d26fadf82686d7ff226b773868415c
2015-01-14 07:14:44 +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 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 cfcfa69fe4 Apply coding conventions for JavaScript
Change-Id: Ibae64ca7aa52c2283ff81bd942be80c83a4089f7
2014-04-30 10:59:01 +00: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
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
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
addshore c3293da273 localise buttons for ky
Change-Id: I2f489142080f4541b1c76590cc18065f5bf56a7e
Bug: 38401
2013-05-27 15:53:35 +01: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
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
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
Yuri Astrakhan 61ab2e1078 (bug 35064) Added Cyrillic chars to Special Symbols editor
Change-Id: Idb39c6b3c9612e8a0e2daff73c71da8e4469e859
2012-12-23 11:03:47 -05:00
MarkAHershberger a72179e943 Bug 42039 - Fix some file-related issues in the distribution
Change-Id: I725b7ca86d037dafc1ea7ac4e744f8e822953841
2012-11-12 09:55:09 -05: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
Krinkle 598763f3cb Merge "Fix for bug 38827. Setting thumb as default format" 2012-09-13 05:47:45 +00:00
Derk-Jan Hartman 667ddb5de9 (bug 39029) Use wgExtensionAssetsPath for path to "extensions/"
Change-Id: I3b816c168af0f5f5dec68fae31b0ca83f23bd871
2012-09-03 06:52:13 +02: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
TyA 5098661115 (bug 25851) Adding additional special characters
The characters are detailed in the bug report.

Patch set 2:
* Amended commit message with bug number.

Patch set 3:
* Added comments to the Cyrillic section for readability.
* Added dotted circle to Palochka to differentiate from I.
* Moved the newly added Ѐ and Ѝ near Е and И.

Change-Id: I2d944926e2769f8691626190259d2466c0e2a8ec
2012-06-13 18:18:50 +03:00
Demon 30b6d957e9 Merge "Fix for bug 35111" 2012-05-22 17:50:34 +00: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
Amir E. Aharoni 71b0323303 Change the code of Greek to 'el'.
'hl' is not the correct code for Greek. It's 'el'.

Change-Id: I90a67ada71e2cbe2dbf8e79df02b83bae5aba998
2012-05-20 14:21:28 +03:00
Krinkle 8730cde553 Merge "Don't escape $, not needed in JS" 2012-04-17 21:30:41 +00:00
Catrope aa78431fc0 Merge "Adding Tamil numerals special character insertion toolbar." 2012-04-17 21:21:40 +00:00
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
Catrope 5bd7ef6a1b Merge "Moved character 25cc (dotted circle) before the diacritic." 2012-04-17 21:14:53 +00:00
Catrope 99a8b25d3b Merge "Adding pretty quotation marks for Hebrew." 2012-04-17 21:11:32 +00:00
Catrope ba2cf2f249 Don't escape $, not needed in JS
This makes jquery.wikiEditor.toolbar.config.js pass jshint (the
command-line jshint from npm that is)

Change-Id: I74d353c956c2b9616a9f80e10d5309ae9ee544db
2012-04-17 13:41:13 -07:00
Amir E. Aharoni ec24d21801 Updating the Gujarati character insertion toolbar.
New characters are added and existing characters are reordered
according to comments received from the Gujarati Language support
team.

Change-Id: I769594ec1088d2c3326477a3f1065d576c6dcdf7
2012-04-01 14:39:51 +03:00
Amir E. Aharoni f963e0f704 Adding pretty quotation marks for Hebrew.
Change-Id: Ief0aad430b4565a46f5772b6ef24e41e11e98774
2012-03-29 11:22:59 +02:00
Amir E. Aharoni e6640f53ba Moved character 25cc (dotted circle) before the diacritic.
The diacritic is supposed to appear after the dotted circle. It is
already like this in other languages.

Change-Id: Id157ab58ae41bd6e8f78c26b35b65003abc7bf7a
2012-03-29 10:15:43 +02:00
Brion VIBBER 954636d7ca Merge "Added ZWNJ and ZWJ according to request at bug 30611. Split special characters from digits." 2012-03-26 22:50:21 +00:00
Amir E. Aharoni 562f1d3fbc Grouped Hebrew characters and added comments. Added required punctuation characters.
Change-Id: I353e3c12be8c2fdb8abcc1d6690b43e71717f689
2012-03-24 15:00:50 +02:00
Amir E. Aharoni aa493220fa Added ZWNJ and ZWJ according to request at bug 30611.
Split special characters from digits.

Change-Id: Ibcaaa1f5447495647ff18658c4250617f8307455
2012-03-24 12:56:08 +02:00
Roan Kattouw d82577cce1 Remove stray comma per bug 31673 comment 4 2011-11-14 13:51:40 +00:00
Roan Kattouw fe7b614517 (bug 31411) Remove stray comma introduced in r86853, broke WikiEditor in IE 2011-10-06 13:15:03 +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
Roan Kattouw dccf13d8c3 (bug 29750) In the special characters toolbar, add Ș (\u0218), ș (\u0129), Ț (\u021a), ț (\u021b) and remove Ţ (\u0162), ţ (\u0163), Ŀ (\u013f), ŀ (\u0140). Patch by Amir Aharoni 2011-08-14 09:29:45 +00:00
Krinkle 6b2326d26d Follow-up r90845: mw.get > mw.config.get 2011-06-26 19:54:21 +00:00
Mark A. Hershberger b18069c06a Bug #29106: Patch from Michael M. to address JS legacy globals in wikiEditor 2011-06-26 19:25:27 +00:00
Jan Paul Posma 6e998359f0 Fixes bug 24088: WikiEditor toolbar RTL icons 2011-04-25 12:26:20 +00:00
Jan Paul Posma 4c8f157f1a Fixes bug 28149 (but with default to true) 2011-04-22 12:10:18 +00:00