Commit graph

117 commits

Author SHA1 Message Date
Brion Vibber 852e1ee551 Fix for CodeEditor's form submit handler; unbind the handler when we disable the editor, and rebind it when we enabled it. Prevents sometimes failing to copy in updates properly or failing during save because an obj is unavailable. 2011-06-17 20:56:34 +00:00
Raimond Spekking 83dce47168 Localisation updates for core and extension messages from translatewiki.net (2011-06-17 19:08:00 UTC) 2011-06-17 19:27:16 +00:00
Brion Vibber e31035d86f CodeEditor: compat fix for use as gadget on MediaWiki 1.17
$.map doesn't handle objects in jQuery before 1.6, so roll our own helper internally
2011-06-16 23:24:32 +00:00
Brion Vibber c09fc16d54 Followup to r90240: clean up some stray code, check for an error condition 2011-06-16 23:04:26 +00:00
Brion Vibber c981d97061 CodeEditor: add an interface for gadget loader to override the local $wgExtensionAssetsPath for CodeEditor's usage (to load its icons) 2011-06-16 22:51:39 +00:00
Brion Vibber 81ba498314 CodeEditor ext: basic ability to toggle the syntax-highlighting editor on/off.
When off, we restore the regular textarea and its behavior.
State is saved as a cookie, like other WikiEditor settings.
2011-06-16 22:30:01 +00:00
Raimond Spekking 045dcf90a0 Localisation updates for core and extension messages from translatewiki.net (2011-06-15 19:51:00 UTC) 2011-06-15 20:04:37 +00:00
Raimond Spekking f0485bae02 Localisation updates for core and extension messages from translatewiki.net (2011-06-14 20:30:00 UTC) 2011-06-14 20:52:22 +00:00
Raimond Spekking da0085ccc7 Tweak message for consistency
Add extension to Translatewiki
2011-06-14 18:32:21 +00:00
Alexandre Emsenhuber 603df79666 svn:eol-style native 2011-06-11 06:51:56 +00:00
Brion Vibber 9578a2322f CodeEditor: attempt at disabling some annoying keyboard shortcuts in Ace, but it's not working.
Issue filed upstream at https://github.com/ajaxorg/ace/issues/294 & asked about on mailing list.
2011-06-11 00:08:54 +00:00
Brion Vibber 5d42ce5f24 CodeEditor: fix to avoid selecting when inserting non-samples such as character insertions
Logging some stub func calls
2011-06-10 23:09:52 +00:00
Brion Vibber 3603c6acae CodeEditor: now integrates with WikiEditor's search-replace 2011-06-10 20:04:17 +00:00
Brion Vibber 2b4a12cadf CodeEditor: fix for encapsulateSelection; now handles replacements & selection for standard cases (bold/italic/link insertion, quote pairs, etc) 2011-06-10 19:32:53 +00:00
Brion Vibber 18af202a72 Partway through integrating CodeEditor more closely with WikiEditor. Special character insertions now work! Bold, link etc will insert their sample text, which is less useful but hey. 2011-06-10 01:11:18 +00:00
Brion Vibber e3f5ab3f2e Update CodeEditor extension to load Ace editor via RL instead of manually 2011-06-09 22:17:00 +00:00
Brion Vibber ec233e4297 Add stub extension version of CodeEditor embedding Ace (ace.ajax.org) for editing JS and CSS pages.
Simply using the existing gadget version modified to load Ace from the extension directory for now, will integrate better into WikiEditor and use ResourceLoader to load Ace itself in upcoming commits.
2011-06-09 21:50:45 +00:00