Commit graph

40 commits

Author SHA1 Message Date
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
Kunal Mehta e8a193ae40 Set manifest_version in extension.json
Bug: T100745
Change-Id: I1ea45b4a7057833f141925329c640ebe1ac4ca41
2015-06-05 17:52:10 -07:00
paladox 4b368e00ae Sync extension.json with CodeEditor.php and empty php entry point
Change-Id: I4e27986911bc73a1247f9e3f0127797fc560df1c
2015-05-29 23:12:10 +01:00
Kunal Mehta 573afa02a1 Add extension.json, stop using $dir
Bug: T87897
Change-Id: I43eaa3f2d96cba98ac6d317b7bff7ba40f16bc7f
2015-03-02 17:55:52 -08:00