Commit graph

29 commits

Author SHA1 Message Date
Quiddity f418853e8d Use MyLanguage for betafeature info link.
Bug: T145904
Change-Id: I093d3b0fa859b1e7616edf7749af94ddcc902b85
2017-08-26 23:57:39 +00:00
Florian Schmidt 00a0baf8b6 Remove $wgCodeMirrorEnableFrontend
Not needed/used anymore.

Bug: T172470
Change-Id: I9aa03c97bd775248f3a2cfb316df77eb7ef86457
2017-08-24 17:55:08 +02:00
Max Semenik 0f6d8818be Move JS config vars from page HTML into RL module
Bug: T172458
Change-Id: I60bfab0028a21c3942508f5ad6377df9a285c7de
2017-08-04 13:37:54 +06:00
Pavel Astakhov bc692cba03 Use $wgContLang for retrieving list of Magic Words
Bug: T170130
Change-Id: Ib1ace23f3f878d4de1c584e1438f3edbe5eef15a
2017-07-10 16:03:03 -07:00
James D. Forrester 9480a5b03a Use a better page for the beta feature discussion link
Change-Id: I5ce29e4bf47abf509afde0a57f64b5d1189f1234
2017-07-07 16:52:00 -07:00
jenkins-bot a587ea7f4d Merge "Remove unused function with outdated comment" 2017-07-07 23:34:48 +00:00
Ed Sanders 40cc5449b3 Update BetaFeatures icon, use new template and cleanup slightly
Change-Id: I29b596aef4a203d0b5e5bad5616d3a52284e147b
2017-07-07 16:20:16 -07:00
Max Semenik 0157a08747 Remove unused function with outdated comment
Change-Id: I86411262e4606d7eab727ebbdd9d8f2c8f387ddd
2017-07-07 15:59:56 -07:00
Umherirrender d371b61b46 Add phpcs and make pass
Change-Id: Ibddce88a08cdd59f6f7b60a297e37952c2f01b62
2017-07-07 20:35:12 +02:00
Niharika29 55092521c3 Make sure popup appears for both classic and wikitext editors
Bug: T165003
Change-Id: I4b1c9498df7931643ea3c39d6d2afd9384e47de0
2017-07-04 00:15:56 +00:00
Niharika29 99e31d152f Show a popup for first time Codemirror users
Bug: T165003
Change-Id: I545a57bdb273ab6906711e2d65dc029293ecc02a
2017-06-29 00:20:14 +00:00
niharika29 48358c1f57 Add syntax highlight as a beta feature
Bug: T165543
Change-Id: If7eb2dc3f7c00a91e5ca39ae564f63efa07bbead
2017-06-20 05:07:53 +00:00
Ed Sanders 7b01a98ad0 VisualEditor source mode support
Long-term todo:
* Performance will be poor on large pages due
  to using a auto-height textarea which CodeMirror
  doesn't optimise.

Change-Id: I16598fcdbeee51e6fae88376ec81f1c8552b383d
2017-05-08 16:54:10 +01:00
Pavel Astakhov c9b4aa65fd Refactor the Integration with other extensions (v 4.0.0)
This patch makes initialization easier and cheaper.

Since only the PhpTags extension uses the CodeMirrorGetAdditionalResources
  hook it was removed. Instead, the CodeMirrorPluginModules and
  CodeMirrorTagModes properties are used in extension.json file.

This patch adds ext.CodeMirror.lib.mode.php module for the PhpTags
  extension (with dependences). In CodeMirror there are a lot of modes
  they will be registered on request (if they will be requered for
  extensions).

Examples of integration:
* Cite: I1bf156fa813af4d5f891619f692047bbdb8a1a86
* PhpTags: Ie339f0475e63885e603defaee2cdcccd6a95fafc

Bug: T163238
Change-Id: Idb7a1a5769a1047ef2f7cd25a7152f73a6613225
2017-05-04 21:20:21 +01:00
Pavel Astakhov b7bc84d783 Remove some outdated code
Since WikiEditor uses wikiEditor-toolbar-doneInitialSections event
  we don't need to add it to ResourceLoader dependencies.

Bug: T161475
Change-Id: I7c7c3ba495c0292d2df052145e7930c86fcb48f5
2017-04-18 14:07:51 +06:00
Reedy 443d8b6988 Type hint for $wgParser
Change-Id: I91356be31d1ed7a9e4dd1efd140c55a9d91cbc1e
2017-04-04 01:04:36 +01:00
Reedy a71b44a8b9 array() -> []
Remove invalid "returns bool always true" comments

Remove return true from other hooks too, update their comments

Check for WikiEditor in a nicer way

Change-Id: I694e3b25f20e35cfc55ba269977047a9c52a2fca
2017-04-01 16:09:25 +01:00
Pavel Astakhov c6f14176ca Convert to ExtensionRegistration (v 3.1.11)
Remove group ext.CodeMirror, too. There is no need to load CodeMirror
in it's own request, it can be loaded with all other modules.

Change-Id: I16958866847b66c523e2edfe841ca20694ec7ccc
2015-08-11 13:12:51 +06:00
addshore b020f256df Fix phpdoc for hooks
Change-Id: Ie55df605d721dfe67eded0145d630329d0ba2c06
2015-08-07 15:45:17 +01:00
Pavel Astakhov e648c77ba7 fix function onGetPreferences (v 3.1.3)
It was broken in I6832f4d82ae0497b92ba210ac7960052e4e12143

Change-Id: I1d47ed6356b2aea16d1347d3464ef2cb1584ad3e
2015-04-07 15:13:43 +06:00
Florian 6bd068ca90 Add option to disable CodeMirror frontend
So CodeMirror only provides it's libraries to use in other code.

Change-Id: I6832f4d82ae0497b92ba210ac7960052e4e12143
2015-03-26 18:25:59 +01: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 16c83240fd add highlighting external links (v 2.1.3)
Change-Id: Ibe065e710c9acb6e65f3aa130b2483588458461b
2014-09-10 16:09:49 +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 b70b84a762 fix variables that was added with hook MagicWordwgVariableIDs (v 1.11.2)
Change-Id: Ic40e1e055e71585ed3e1706f356eafe7817f35a2
2014-09-04 09:37:11 +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 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 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