Ed Sanders
02c22f53ff
Styling fixes
...
* Move CSS out of mediawiki.css which is for wikitext
highlighting rules.
* Account for wikieditor-ui adding wrappers even when
disabled.
Change-Id: I0fca693a6771ee1d790800c9afd5c7091fda20c1
2017-03-27 14:02:25 +01:00
Pavel Astakhov
29fa173331
Fix CodeMirror state when initializing
...
Before CodeMirror was enabled every time (ignoring user settings)
since switchCodeMirror was called in initialisation and some others bugs...
Change-Id: I418c64000e05dbfac62f5bb2327cfe7ed74efb17
2017-03-27 14:23:21 +06:00
Ed Sanders
3980fa0af0
Cleanup and use SVG icons
...
Change-Id: Idcad8e2554c5e44155c88bd925186095e3aad930
2017-03-27 02:59:13 +00:00
jenkins-bot
47b8f19d8e
Merge "Switching fixes"
2017-03-27 02:54:23 +00:00
jenkins-bot
1512e38c4e
Merge "Only give code mirror focus for specific commands"
2017-03-27 02:54:23 +00:00
jenkins-bot
eaac96c5e1
Merge "Update CodeMirror to 5.25.0"
2017-03-22 21:57:42 +00:00
Ed Sanders
806527d8a1
Switching fixes
...
* Fix state toggle in WikiEditor
* Update options API code
* Fix font-size and line-height so text doesn't move
* Append to WikiEditor after loading so it appends in
correct part of DOM.
* Only add border in classic editor
Change-Id: I5e80298030633d4859d01a92b6c61ef1fa969e96
2017-03-22 11:48:41 +00:00
Ed Sanders
53c64371dd
Only give code mirror focus for specific commands
...
Previously focus was being called even for getContents, causing the
editor to instantly steal focus from the edit summary input (!!).
Change-Id: I5a14850d90a7c5605026e1fac192585ee62b4615
2017-03-22 11:48:41 +00:00
Ed Sanders
66ba217ba2
build: Replace jshint/jscs with eslint, introduce stylelint
...
Change-Id: I9b5afb39f5a0d32e722b2a1f56c219b8c85b451c
2017-03-21 16:45:56 +00:00
Ed Sanders
75ca882e38
Update CodeMirror to 5.25.0
...
Change-Id: I47680ba98e1ab39360608aa7a923e7fee7db615e
2017-03-21 15:05:52 +00:00
Pavel Astakhov
faf7246cd4
Update CodeMirror library to version 5.16.0
...
Change-Id: Iae9df045d0e897e03b3edcb935188731e019811f
2016-07-19 17:05:52 +06:00
Pavel Astakhov
339e677bee
Remove usage of mod function
...
Change-Id: Id84d85318ef498b4aa8fcbe073b8bc8a8c8c7ed7
2016-07-19 16:31:35 +06:00
Paladox
45ebd2d55d
Update Jenkins tests
...
Test jshint and jscs through npm using latest version of jscs and jshint.
Add support for composer.json running phplint and in the future php code
sniffer.
Change-Id: Id8f11f9414fae8313dc18a857a07e11694354dcb
2016-03-03 13:29:48 +00:00
Legoktm
bf5da5eec5
Revert "Compress PNGs with zopflipng"
...
This reverts commit a64a74ce7d
.
Change-Id: Ifc03d61aabc711bde030f3e013669edc8f07a6b2
2016-02-27 23:32:49 +00:00
Ori Livneh
a64a74ce7d
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: I765f876aa2cf863479f93912efe387160b4ef348
2016-02-21 00:59:49 +00:00
Ori Livneh
a97494e94e
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 --iterations=500 --filters=01234mepb {} {} \;
Files which zopflipng was not able to compress more efficiently were left unmodified.
Bug: T127608
Change-Id: Iec319a37c5884798afa58145a30d496bb1c9d57b
2016-02-20 22:57:24 +00:00
Pavel Astakhov
7854e7c06b
Update the CodeMirror library to 5.9 (v 3.4.0)
...
Change-Id: Ia36b0573809d632c0521477cea72268b5524efae
2015-12-14 11:28:57 +06:00
Paladox
d51ef3cc2a
Update the CodeMirror library to 5.8
...
Url:
- https://github.com/codemirror/CodeMirror/tree/5.8.0
Change-Id: I1634b34f47386dbb55951b7679bac3a197b17484
2015-11-22 19:15:54 +00:00
Pavel Astakhov
740cc73d1a
Go to next field when TAB key is pressed (v 3.3.0)
...
Bug: T118180
Change-Id: Ic86736f0c2b657bd3b56c16f9243a4f123af6d5e
2015-11-18 14:34:08 +06:00
Pavel Astakhov
82f8acd450
Fix conflict with the CodeEditor extension (v 3.2.3)
...
CodeMirror will be not initialized if CodeEditor is used
Change-Id: I78ab2814beb0e40a878f6a02b7d3967c216afce6
2015-11-18 11:34:36 +06:00
Pavel Astakhov
3db709ef0c
Skip setCodeEditorPreference for anon users (v 3.2.2)
...
Change-Id: If4f208b3edd73a100404f09f170fb3a060ce1c3c
2015-10-29 09:15:29 +06:00
Pavel Astakhov
991be29500
fix highlighting parameters inside a template transclusion (v 3.2.1)
...
Bug: T108450
Change-Id: Ic686fe6aa211988d8458037c275779f512d03563
2015-08-20 10:32:11 +06:00
Pavel Astakhov
9acce89672
fix bold and italic apostrophes (v 3.2)
...
Bug: T108455
Change-Id: Ie9e0d734004d062e4c347f7940eb34bdc231d026
2015-08-19 21:10:31 +06:00
Pavel Astakhov
66b518d8dd
fix highlighting of external links, multiple apostrophes end link (3.1.14)
...
Change-Id: Ibbb4850edc04ed6b184fa59c51e1978d60cd1269
2015-08-14 13:22:47 +06:00
Pavel Astakhov
491f186e14
fix matching hr ---- (v 3.1.13)
...
Change-Id: I7ea6fa891d2c53da4ac9bd62319dad702a11b8d7
2015-08-14 12:03:41 +06:00
Pavel Astakhov
e681dc6ce2
Add setContents to textSelection and JS hook for #wpTextbox1 (v 3.1.12)
...
Bug: T108711
Change-Id: I65f25108863339fdcfc55c030a1158c2cd789b91
2015-08-14 11:49:12 +06:00
jenkins-bot
745b2f05e1
Merge "Add translateable tooltip message for CodeMirror button"
2015-08-11 03:46:06 +00:00
Pavel Astakhov
443ccff873
fix function eatFreeExternalLink (v 3.1.10)
...
allow one '{' in free external link
Change-Id: Ieaa157b79cff9d05d8bed3ae536cfe45e7e4ae42
2015-08-10 23:30:05 +06:00
Pavel Astakhov
00f668e32c
add highlighting of free external links (v 3.1.9)
...
Bug: T108448
Change-Id: I1311be98e346b9d85350eeb9a6dffaf08f344d56
2015-08-10 23:14:18 +06:00
Florian
f2c5c5613b
Add translateable tooltip message for CodeMirror button
...
Use a message, that explains a bit more, what CodeMirror is and indicate
what the button do exactly.
Change-Id: If8a0a8261cd811407cff4868dcf6475335b3f752
2015-08-10 17:57:09 +02:00
Pavel Astakhov
545d21ce61
add highlighting of indented tables (v 3.1.8)
...
Bug: T108454
Change-Id: Ib5344fa870954da166314c8ace916861bd71acf9
2015-08-10 13:48:48 +06:00
Pavel Astakhov
27a7499906
skip leading spaces in table syntax (v 3.1.7)
...
Bug: T108453
Change-Id: I348855b9ae8a4f571bb765df2b0819ebe3fda75d
2015-08-10 11:07:55 +06:00
Pavel Astakhov
19bced27dc
add highlighting of table caption (v 3.1.6)
...
Bug: T108452
Change-Id: I543db4c26c1a0ed7314ae826ddd2876de7539bf2
2015-08-10 10:34:11 +06:00
Pavel Astakhov
a3aee2406a
Update the CodeMirror library to 5.4 (v 3.1.5)
...
Change-Id: Ic15062a6d07087771a1773657fff01f176c2de12
2015-07-07 11:50:59 +06:00
Pavel Astakhov
ba5a12a679
fix readonly state and TextSelection (v 3.1.2)
...
Bug: T95149
Bug: T95150
Change-Id: Ia8660d5c2a6dca6a2a37bc60e36620f48aad3260
2015-04-06 17:33:39 +06:00
Pavel Astakhov
533dc431b6
update CodeMirror library to version 5.0.0 (v 3.1.1)
...
Change-Id: Ifcd1bdcd45c7b6fbb10927d1c6821f8804527ef6
2015-03-16 17:35:50 +00:00
Florian Schmidt
3253edba8b
Rework extensions setup (v 3.1.0)
...
* Cleanup the init process of this extension (PHP & JS setup)
* Make it useable for other extensions like MobileFrontend.
* Call new hook CodeMirrorGetAdditionalResources instead of CodeMirrorGetExtensionMode
Bug: T91796
Change-Id: I9763c40835c2edddafb0dcbacdf53a86f663b8cd
2015-03-16 16:45:18 +01:00
Pavel Astakhov
ae450a5c3c
refactor and extend usability (v 3.0.0)
...
* add on/off button to toolbar
* add highlighting table, hr ----, sign ~~~
* update codemirror lib to 4.7
* fix font size
Change-Id: Idd5775d6c80a18406aee7b8ab51691f26038764c
2014-10-23 12:09:10 +06:00
Pavel Astakhov
73963bb7a5
fix template page name regex perfomance (v 2.1.4)
...
Change-Id: If66d3a7cdb38c4d650f003083a6dea67f4220997
2014-09-11 16:30:49 +06:00
Pavel Astakhov
16c83240fd
add highlighting external links (v 2.1.3)
...
Change-Id: Ibe065e710c9acb6e65f3aa130b2483588458461b
2014-09-10 16:09:49 +06:00
Pavel Astakhov
60e283ca81
fix highlighting links, tags and templates in section headers (v 2.1.2)
...
Change-Id: Ib4b788f7f8dc21732e231c9e59cf31a9165d04fa
2014-09-10 12:45:05 +06:00
Pavel Astakhov
5cd447d60e
add highlighting section headers (v 2.1.1)
...
Change-Id: I082a81ff3fd44d97b8064e0a567db33ac709a196
2014-09-10 12:06:17 +06:00
Pavel Astakhov
8f270c34a9
refactor css style, move it to own definition (v 2.1.0)
...
*add highlighting list and indenting
*add tags: <noinclude>, <includeonly>, <onlyinclude>
*modify highlighting template variable
Change-Id: If6ae7d127766c32bc7e3c10b226a74ec97a0848f
2014-09-09 20:45:04 +06:00
Pavel Astakhov
b2bb9e2a80
fix fluent Interface for Find&Replace (v 2.0.1)
...
Change-Id: I07ed6b7d1f3df9de07b0495909a93680ec4c0c92
2014-09-05 16:43:05 +06:00
Pavel Astakhov
e789605772
make compatible with toolbox (v 2.0.0)
...
replace function $.fn.textSelection from file:
MediaWiki/core/resources/src/jquery/jquery.textSelection.js
Change-Id: Ie22f480968cf5eba1c4e91fbcf7881e6f86ee5ac
2014-09-05 15:44:51 +06:00
Pavel Astakhov
30a3ae4319
add highlighting double underscore Magic words (v 1.12.0)
...
Change-Id: I4eceaa790ca053de49f5d0983bdd8ae288ba985f
2014-09-04 10:23:05 +06:00
Pavel Astakhov
31951e253a
fix highlighting tag. Highlight only html and parser tags (v 1.11.1)
...
Change-Id: I1f330181cf99ba1ccf7702bcd6fadf60957ae638
2014-09-03 12:50:45 +06:00
Pavel Astakhov
b9f40490f3
add highlighting extension tags (v 1.11.0)
...
* fix some bugs...
Change-Id: Icf7eb836c6fbe3a686d67355064f57a6199d6b22
2014-09-03 11:04:56 +06:00
Pavel Astakhov
691ed8bec2
add highlighting tag <pre> (v 1.10.0)
...
* remove state.allowWikimarkup
Change-Id: Ic34d8be7e10b2e829cf76d5e5c0f40da3c943961
2014-09-02 19:23:13 +06:00
Pavel Astakhov
5cbe8bd28f
fix highlighting template variable (v 1.9.2)
...
Change-Id: Iea975300c0ce1a3f80f75bff1be7b013bad4c420
2014-09-02 10:53:00 +06:00
Pavel Astakhov
89e584b947
fix word boundary for not english parser functions (v 1.9.1)
...
Change-Id: I7399b7787cec57745a1cf7401d519f145e65845c
2014-08-29 12:20:54 +06:00
Pavel Astakhov
65ffeacf9e
add highlighting the magic word that does not begin with '#' (v 1.9.0)
...
* fix brackets color
Change-Id: I1cd057287d5ae142ed240e4ea9012790716f888c
2014-08-29 10:05:50 +06:00
Pavel Astakhov
77c8f73fec
add highlighting template variables (v 1.8.0)
...
Change-Id: I0808c518c553bedf0b8cca8a1502c346292c7b5a
2014-08-28 15:46:50 +06:00
Pavel Astakhov
fa6049075e
fix highlighting text that starts with space (v 1.7.4)
...
Change-Id: I1da85271f81a2e01fa617434c82faa8148d56e0d
2014-08-28 12:38:31 +06:00
Pavel Astakhov
675e892f8d
fix highlighting mnemonic (v 1.7.3)
...
Change-Id: I10a650b26caf8ce6d2d5d60706d8bd1f5adfd4c4
2014-08-28 10:20:03 +06:00
Pavel Astakhov
fd51de0222
add addon active line and set size as textarea (v 1.7.1)
...
Change-Id: Iecbce4695e2a31447741d1d64dd8b575fd8c3865
2014-08-27 15:33:10 +06:00
Pavel Astakhov
9b4faf39b1
add highlighting internal link (v 1.7.0)
...
Change-Id: I9609c62e67ff61650d7e4efed802246a99f0703c
2014-08-26 13:00:52 +06:00
Pavel Astakhov
3627671730
fix highlighting arguments of templates and parser functions (v 1.6.1)
...
Change-Id: I3f65a6fa84289fa8e8e371232c58055978d9e9c3
2014-08-26 09:10:02 +06:00
Pavel Astakhov
82d1247978
add highlighting text that starts with space (1.6.0)
...
* fix highlighting template argument name
Change-Id: I249f89e34774c1c52ab62d4349d2f16fa0d69115
2014-08-25 22:59:36 +06:00
Pavel Astakhov
ac5080f18d
add highlighting tag names (v 1.5.0)
...
* rename CODEMIRROR_VERSION to EXT_CODEMIRROR_VERSION
Change-Id: I20b1cb872595a1491bb2c0485cb49c68fa908dd0
2014-08-25 16:56:52 +06:00
Pavel Astakhov
0697497834
fix templagte argements with '=' is more that one (v 1.4.1)
...
Change-Id: I6191fff3d2d9084189de2c10107ef43a236a2561
2014-08-25 11:08:40 +06:00
Pavel Astakhov
025027e26d
fix highlighting templates and parser functions recussive (v 1.4.0)
...
* increase font
Change-Id: Ife58eb1d27c7549517c954fb152f3eb37fa6decd
2014-08-25 11:03:59 +06:00
Pavel Astakhov
8ff9748f5e
add highlighting comments (v 1.3.0)
...
Change-Id: I0243202d8a7571570f6446bb0dca3b50f2b812a3
2014-08-22 13:21:32 +06:00
Pavel Astakhov
6221e8779e
add highlighting character entity references (v 1.2.0)
...
Change-Id: I1e2a41a5dd2d417ea62c5b78778c7c50bafcbb40
2014-08-22 12:16:05 +06:00
Pavel Astakhov
bdb653d94e
fix js code for passing jshint (v 1.1.1)
...
Bug: 69869
Change-Id: I1b058ea1dc6c5c3e10ff2de39f03ddd72207e57e
2014-08-22 10:18:51 +06:00
Pavel Astakhov
1a05b6c9d2
add highlighting bold and italic wikitext (v 1.1.0)
...
Change-Id: I6576d0b592dee8242c05dc60b45f282349af475d
2014-08-21 20:36:09 +06:00
Pavel Astakhov
47d5f45baf
fix highlighting name of parser function (v 1.0.2)
...
Change-Id: I881f9e18799c217e30164e2787d3b9995ec4537f
2014-08-21 12:35:03 +06:00
Pavel Astakhov
67a828cf3e
fix highlighting space behind page name in Templates (v 1.0.1)
...
* fix code mirror options
* fix code mirror font
* fix code mirror border
Change-Id: I7b8063cd8c5e6450b9cea0f76ed27a8ffb9ae990
2014-08-21 11:54:15 +06:00
Pavel Astakhov
c8bd7736f9
Initial commit (v 1.0.0)
...
* add the highlighting of templates and parser functions
Change-Id: I6f5a0aa701b1b4e58510bf17a25eb1a0e1b5f14a
2014-08-20 23:03:46 +06:00