From 3d9d17e914323a08975258626328c5c84168be97 Mon Sep 17 00:00:00 2001 From: nightwing Date: Thu, 26 Jul 2012 20:42:42 +0400 Subject: [PATCH 1/3] update readme --- .gitmodules | 2 +- Readme.md | 6 +++--- index.html | 2 +- package.json | 5 +---- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.gitmodules b/.gitmodules index 5c78725c..4678c516 100644 --- a/.gitmodules +++ b/.gitmodules @@ -3,4 +3,4 @@ url = git://github.com/ajaxorg/ace.wiki.git [submodule "build"] path = build - url = https://github.com/ajaxorg/ace-builds.git + url = git://github.com/ajaxorg/ace-builds.git diff --git a/Readme.md b/Readme.md index b8024df7..e55ef505 100644 --- a/Readme.md +++ b/Readme.md @@ -25,9 +25,9 @@ Features Take Ace for a spin! -------------------- -Check out the Ace live [demo](http://ajaxorg.github.com/ace-builds/kitchen-sink.html) or get a [Cloud9 IDE account](http://c9.io) to experience Ace while editing one of your own GitHub projects. +Check out the Ace live [demo](http://ajaxorg.github.com/ace/build/kitchen-sink.html) or get a [Cloud9 IDE account](http://c9.io) to experience Ace while editing one of your own GitHub projects. -If you want, you can use Ace as a textarea replacement thanks to the [Ace Bookmarklet](http://ajaxorg.github.com/ace-builds/textarea/editor.html). +If you want, you can use Ace as a textarea replacement thanks to the [Ace Bookmarklet](http://ajaxorg.github.com/ace/build/textarea/editor.html). Getting the code ---------------- @@ -123,7 +123,7 @@ The editor can then be opened at http://localhost:8888/kitchen-sink.html. Package Ace ----------- -To package Ace we use the dryice build tool developed by the Mozilla Skywriter team. (see the [wiki](https://github.com/ajaxorg/ace/wiki/Building-ace) more for details) +To package Ace we use the dryice build tool developed by the Mozilla Skywriter team. (see the [wiki](https://github.com/ajaxorg/ace/wiki/Building-ace) for more details) ```bash npm install diff --git a/index.html b/index.html index 911f5c97..a463d535 100644 --- a/index.html +++ b/index.html @@ -116,7 +116,7 @@

Take Ace for a spin!

-

Check out the Ace live demo or get a Cloud9 IDE account to experience Ace while editing one of your own GitHub projects.

+

Check out the Ace live demo or get a Cloud9 IDE account to experience Ace while editing one of your own GitHub projects.

History

diff --git a/package.json b/package.json index bfe31c80..b7a4b097 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "description": "Ajax.org Code Editor is a full featured source code highlighting editor that powers the Cloud9 IDE", "version": "0.2.0", "homepage" : "http://github.com/ajaxorg/ace", - "engines": {"node": ">= 0.4.0"}, + "engines": {"node": ">= 0.6.0"}, "author": "Fabian Jakobs ", "main": "lib/ace", "repository" : { @@ -19,9 +19,6 @@ "dryice": "", "panino" : "~1.0.15" }, - "engines": { - "node": "~0.6.0" - }, "mappings": { "ace": "." }, From 354e8b3eff82b446f712a4dac11f0b47eb7cd164 Mon Sep 17 00:00:00 2001 From: nightwing Date: Fri, 13 Jul 2012 20:27:59 +0400 Subject: [PATCH 2/3] do not overwrite type of event this is needed for safari 6 --- lib/ace/lib/event_emitter.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ace/lib/event_emitter.js b/lib/ace/lib/event_emitter.js index ef1e25a0..5818864d 100644 --- a/lib/ace/lib/event_emitter.js +++ b/lib/ace/lib/event_emitter.js @@ -54,7 +54,8 @@ EventEmitter._dispatchEvent = function(eventName, e) { return; e = e || {}; - e.type = eventName; + if (!e.type) + e.type = eventName; if (!e.stopPropagation) { e.stopPropagation = function() { From 538f54f47c7a703d24eefb6ef0d58b5c089498a2 Mon Sep 17 00:00:00 2001 From: nightwing Date: Mon, 16 Jul 2012 23:16:29 +0400 Subject: [PATCH 3/3] new opera supports KeyboardEvents --- lib/ace/keyboard/textinput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ace/keyboard/textinput.js b/lib/ace/keyboard/textinput.js index e4ba3e1c..49c93116 100644 --- a/lib/ace/keyboard/textinput.js +++ b/lib/ace/keyboard/textinput.js @@ -206,7 +206,7 @@ var TextInput = function(parentNode, host) { }); event.addListener(text, "cut", onCut); // for ie9 context menu } - else if (useragent.isOpera) { + else if (useragent.isOpera && !("KeyboardEvent" in window)) { event.addListener(parentNode, "keydown", function(e) { if ((useragent.isMac && !e.metaKey) || !e.ctrlKey) return;