Commit graph

53 commits

Author SHA1 Message Date
Derk-Jan Hartman a3e2b2c8a6 Remove unnecesary targets from RL module definitions
Bug: T328497
Change-Id: I0018a7df9576d571c1d6f1dd8dcf2788efa4c097
2024-01-12 14:07:44 +01:00
Fomafix bf0ba2f20c Use MediaWiki\ResourceLoader\ImageModule instead of ResourceLoaderImageModule
The class name ResourceLoaderImageModule is deprecated since 1.39.

Change-Id: I39156ac04b1c0609487d359579bac1fefcea6356
2023-12-01 13:23:39 +00:00
gerritbot dafb05f12d Update UserOptionsLookup's FQN
User-options related classes are being moved to the MediaWiki\User\Options namespace in MediaWiki Core; reflect that change here.

Bug: T352284
Depends-On: I9822eb1553870b876d0b8a927e4e86c27d83bd52
Change-Id: I2af14da0c4f2d13e94b0301ae5d4d2589e05f0b7
2023-11-29 12:38:27 +00:00
Ed Sanders 9111107de8 CodeEditor: Avoid movement while loading
Bug: T73015
Change-Id: I0ce663ebad4bb9ab9f435aeba65c545ee21e0680
2023-10-15 07:21:36 +00:00
James D. Forrester d63555f3e8 build: Update MediaWiki requirement to 1.41
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: I3606309b5d9e401577fcf7a5230ae60e6f5b6774
2023-08-19 11:27:24 +00:00
gerritbot 417ce7bebf Update moved class EditPage
See T321882. Moved in Ibefc44eb64aed

Bug: T321681
Change-Id: I5a66b76658c3eb19f2afe5b9a8ce4748767e6c2d
2023-05-06 21:19:29 +00:00
Umherirrender 10dddec75b Replace deprecated Hooks::run
Bug: T335536
Change-Id: Ifc18d80c15f714d58aef33c9991079db9406a19e
2023-04-29 20:13:21 +02:00
Jon Robson cf169e60e2 Enable CodeEditor modules on mobile
Depends-On: Ifa355f3821c72935c74650fa635a6ab863c70d39
Bug: T324723
Change-Id: I271e99c777b638bd4c4bae642f8c7c87fc0ae5cd
2023-01-05 20:31:30 +00:00
Fomafix a1b66a08db Use AutoloadNamespaces instead of AutoloadClasses
Change-Id: I9a1b95e1ff4c601c7101c6cf9cdc6f17e84a33a3
2021-11-28 14:58:04 +00:00
Roman Stolar 51cd95fac9 Avoid using User::getOption and inject service UserOptionsLookup
Remove using of User:getOption since this method will be hard-deprecated. Now it is soft-deprecated

Bug: T296083
Change-Id: Iae0c0cd3ab4ffdfd6cfce5e7ced81dfae3d4a359
2021-11-26 08:36:11 +00:00
Fomafix ad1930d255 Use HookHandlers and implement hook interfaces
Change-Id: I9313f4cff24ceb9c83d5a529ec3064330eabb8c6
2021-11-25 20:14:37 +00:00
Fomafix d7117949b1 Use namespace MediaWiki\Extension\CodeEditor in PHP
An alias with the old class name CodeEditorHooks is not added because
there are no external findings on
https://codesearch.wmcloud.org/search/?q=CodeEditorHooks

Change-Id: I88cb3a506d196d918ce852e46433dad808ae2a6c
2021-11-25 19:41:48 +00:00
Umherirrender b2aeedd34a Move images folder into modules folder
All resources needed by client should in one folder

Change-Id: Ib9f6ea7bb59f2b5b8115c381290032170d482a98
2021-03-12 20:09:55 +01:00
Ed Sanders ccb909be60 De-emphasise line numbers
Bug: T271956
Change-Id: I336e7a319a7a4eb5f6fc9f07b149d584a15c73c4
2021-01-13 17:07:02 +00:00
Reedy f7eb59064f Convert to manifest_version 2
Bug: T252470
Change-Id: If5e8b31de0601be9f432196884eaafcc2b8b096d
2020-05-12 00:01:26 +01:00
DannyS712 58fd7c8028 extension.json - don't use array syntax when hooks only have 1 handler
Change-Id: I5dc790836c374793990e4fd059697db4e8e34cbe
2020-03-11 09:07:18 +00:00
Timo Tijhof c0c70a2312 Remove use of jquery.ui module aliases
Bug: T219604
Change-Id: Ia639ca6728ac23c14fa5b1a21317ddd3220c3727
2019-11-26 20:06:59 +00:00
Brian Wolff f8d9cdebdb Make CodeEditor compatible with CSP
Adds a "script-src blob:" directive on pages using CodeEditor.
This should allow using the blob-based web-worker that ACE uses.

This bumps the MediaWiki dependency to current master (1.35.0+).

Bug: T214743
Depends-on: I68054644220cd03bc96cf8ffb9c7ee375be77f96
Change-Id: I40612274a7e1d964119433442d992a8bf67f61af
2019-10-28 12:41:05 +00:00
James D. Forrester 988bc3c0b1 Drop wgCodeEditorEnableCore, default on, pointless to disable
Change-Id: I637ac6cc92183dbf73b6bb39d487c6d4099657be
2019-07-12 10:58:50 -07:00
Derk-Jan Hartman e8fbe62ef0 Make use of new WikiEditor 2010 toggle tool
Set a specific WikiEditor version dependency of 0.5.2.

Bug: T198781
Change-Id: I6664a7ff2383d83c7d0fa1fd45e2539fad40c1d0
Depends-On: I8b7fd41571a48fa4f6560790d94bb966972e740f
2018-08-17 11:22:36 -07:00
Kunal Mehta 4f7fa3002a Don't use deprecated mediawiki.api.options
It was merged into `mediawiki.api`.

Bug: T196802
Change-Id: I03dad49e2b7949ad539d405d2dff933b288eec98
2018-06-09 00:18:58 -07:00
Kunal Mehta 99a38b36a3 Mention Ace license in "license-name"
Change-Id: Ibbfa1554ed1fe4dcaba2629abf608b59a2dd279a
2018-04-28 19:41:30 +00:00
Kunal Mehta 327124400c Set extension type to editor
Change-Id: I6a2689c22fa9518001d1cbec06af9b56b572f93d
2018-04-13 22:08:11 -07:00
Kunal Mehta 312dadf7aa Link to Ace in extension credits
Change-Id: I5ece8ba2d1f433b39e8608b1233a71e2fa21079a
2018-04-14 01:46:50 +00:00
Volker E 75d8b4c112 Replace deprecated OOUI 'find' icon with 'articleSearch' of 'content' pack
Depends-on: I41c3d5502ff58f72bf7441811eaf17702468469b
Bug: T183645
Change-Id: I0535b667084771ecff3a4c0e14616fc9ee586895
2018-04-02 14:26:48 -07:00
Ed Sanders 819c6e1c82 Use OOUI icons
* Use upstream icons where available
* Move extra icons into a ResourceLoaderImageModule

Depends-On: I3e6f65f6f290778d3fbfa22f5d212c26fee12a86
Change-Id: I61cd750613922e58cec18a2886609f20e73f4a61
2018-03-23 22:51:35 +00:00
Kunal Mehta 99cd2828eb Move classes into includes/
Change-Id: I9ece489e16d214990191e5077e6271bd95fdb08c
2018-02-09 00:25:20 -08:00
Kunal Mehta 668d12e623 Use SPDX 3.0 license identifier
SPDX released version 3 of their license list (<https://spdx.org/licenses/>),
which changed the FSF licenses to explicitly end in -only or -or-later
instead of relying on an easy to miss + symbol.

Bug: T183858
Change-Id: Ib99ca36894c1b5575636145e0e42af6d485c30c8
2018-01-04 02:55:38 -08:00
Ed Sanders 73ac200c62 Fix WikiEditor dependencies
Change-Id: I81b90a8f1791f1664000637fb90e54f8741eac9a
2018-01-03 20:18:59 +00:00
Fomafix 7ba602a39a Add dependency on module 'mediawiki.user'
jquery.codeEditor.js uses mw.user.isAnon().

Change-Id: I2dd2219bf241a67aefa46efa8f552dea56b3b67d
2017-06-13 07:22:45 +02:00
Derk-Jan Hartman aada6542b8 Define explicit default for usecodeeditor
Bug: T162877
Change-Id: I7591ac81e1cf8c1097e68d3517b7421bea3face2
2017-04-13 13:46:10 +02:00
Ed Sanders 7148dfcf3f Use OOUI for prompt dialog
Depends on latest OOUI, and therefore MW 1.29.

Change-Id: I91594f534a2dca657785357a1dcb39e86d072bac
2017-01-09 15:39:27 -08:00
jenkins-bot 2bca1e67cf Merge "Use OOUI for confirm dialog" 2016-12-25 12:30:18 +00:00
Ed Sanders 6042898fcf Use OOUI for confirm dialog
Would be nice to do this for the goto line prompt,
but such a OO.ui.prompt doesn't exist yet.

Change-Id: I6b24e51b5b106ece80e265ff5417878f108619b7
2016-12-24 22:49:21 +00:00
Kunal Mehta 79f42ce34c CodeEditor depends on WikiEditor
Change-Id: Ia91187298fb0da5d723ccd746b2ea10b6ddfc470
2016-12-16 11:11:45 -08:00
Ed Sanders 1818ed4bea Add missing i18n for 'go to line' prompt
Change-Id: If4f7c243f23fc809c95cf671d5b47ec978a9fdb9
2016-12-09 13:49:46 +00:00
Alex Monk 142b8089a5 Follow-up I83714188: Don't turn every MW page into an exception
A hook function was removed, now we remove the reference to it from wgHooks.

Change-Id: I2d6c6b8f7948ec69f6ee04f904c48812b34ddaa2
2016-11-15 01:31:04 +00:00
Derk-Jan Hartman 07b24bb9f0 Remove inline CodeEditor for <syntaxhighlight>
This was an unfinished module to enable the CodeEditor to do inline
editing of <syntaxhighlight> blocks. It was never finished and I think
that with the VE and WE 2017 work, it likely will never be finished
either. For that reason, it is better to remove it altogether.

Change-Id: I83714188a53d2ca6bb7bf0dc6d0c89b7fb45a47a
2016-11-14 23:47:28 +01:00
Derk-Jan Hartman c9d4d7663e Simplify modeloading
Analogous to I82d278920695be12aa80a79548abf8b8ce5445fd, make sure that
we can lazy load any language that Ace supports. Not because we need
it, but because it's the nicer way to do it.

Change-Id: I19b8a31041814ac1273d62a24b5ed622fd91a7a8
2016-10-21 14:13:26 +02:00
jenkins-bot bc30c28bb3 Merge "Supply model/format directly to hook" 2016-08-11 01:06:31 +00:00
Thalia 954f8a2a75 Add jquery.textSelection dependency
Change-Id: I66de8620adced0c810ebd7b1037f790eec688534
2016-08-04 12:59:16 -07:00
Brian Wolff 7a95deea76 Supply model/format directly to hook
Most of the time people want to trigger on content model, or content
format. This allows triggering correctly even if you are viewing an
old revision with a different content model, or are using a content
format that is different than the default for the current model.

Also remove back compat code for pre 1.23
Change-Id: I9706eaae0983e2b7b99f83c9564ea04c5ec252ac
2016-07-23 01:41:21 +00:00
Kghbln ab06a36cd0 License information
* Adds license label to "Special:Version"
* Makes more visible that only the extension and not the bundled
  software is licensed GPL-2.0+

Change-Id: I778212bb96edcc4e10714447b8ef57f8ce87b5ef
2016-03-09 17:27:45 +01:00
Ed Sanders b5312f1d4c Replace toolbar with OOUI/OOUI-style SVGs
* Use resource loader embedding for better performance
  (uses a slightly hacky method to achieve this, the only
  alternative would be to fix the WikiEditor API, but that
  would introduce a version dependency)
* Use SVGs from OOUI where available or create new ones where not.
  These are used and available under the OOjs UI MIT licence.
* Provide PNG fallbacks using LESS mixin
* Remove unused icons

Change-Id: If38d51d24958716e2617c4cb515e7c0575cdfeba
2016-02-29 13:00:15 -08:00
jenkins-bot 74e4cc383f Merge "Abort previous unfinished API request before sending new request" 2016-01-27 20:57:22 +00:00
Fomafix 135716727d Abort previous unfinished API request before sending new request
This change requires 81171ab3 from core included in MediaWiki 1.27.

Change-Id: I8dec32bf49e412510cf5d98f2f946bfd337f47a1
2016-01-27 11:07:38 +00:00
Fomafix d10cfbb1bf Update URLs from http://ace.ajax.org/ to https://ace.c9.io/
http://ace.ajax.org/ redirects to https://ace.c9.io/

Change-Id: Ib915fec2855bfcec1a7d9b3c91dd3dd13db703ab
2016-01-27 11:01:54 +00:00
Fomafix eacbcd828a Use module "mediawiki.api.options" to save options
This change requires MediaWiki 1.25.

Change-Id: Id476b7422bd47751813f671982ceecd6d9844718
2015-11-29 16:00:13 +00:00
Thalia 9ec460642c Add latex to Ace modes module
Change-Id: Ibcd941d938c80ffa7206df1b58acf6d1fc7c388b
2015-11-18 13:45:56 -08:00
Kunal Mehta 97cc56046b Add MediaWiki version requirement to extension.json
Change-Id: I15f3af699831c7253752ea1815fc88839ee0466c
2015-09-23 08:54:29 -07:00