Brion Vibber
bf67581924
CodeEditor ext: Add an experimental demo (off by default) mode to edit SyntaxHighlight_GeSHi sections inline using Ace editor
...
Not ready for prime-time. :) Doesn't actually save pages (just updates the live view), and seems to have problems when invoked multiple times.
Not all GeSHi languages are supported.
Colors of course are different.
Set $wgCodeEditorGeshiIntegration = true to enable; adds a 'section edit link' on source bits.
2011-08-04 22:33:59 +00:00
Brion Vibber
67cc93c468
CodeEditor ext: Update Ace editor to upstream 237c2243734b7968e39bf3c97fa5bb3b26a920c4
...
Fixes issues with control keys: https://github.com/ajaxorg/ace/issues/294
2011-08-02 14:37:03 +00:00
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
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
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