From c99817b1b70778de059823134b3c59f61fe1add9 Mon Sep 17 00:00:00 2001
From: Jay Salvat
Date: Wed, 23 Feb 2011 21:53:31 +0100
Subject: [PATCH 01/60] Added jQuery 1.5 link
---
index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.html b/index.html
index 38fc339..af3834d 100644
--- a/index.html
+++ b/index.html
@@ -5,7 +5,7 @@
markItUp! Universal markup editor
-
+
From 157249d6a73820367cc205046cfd871f00de8b3b Mon Sep 17 00:00:00 2001
From: Jay Salvat
Date: Wed, 23 Feb 2011 21:53:44 +0100
Subject: [PATCH 02/60] Added quotes to jQuery attribute selectors
---
markitup/jquery.markitup.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/markitup/jquery.markitup.js b/markitup/jquery.markitup.js
index 8c69b78..15f21c3 100644
--- a/markitup/jquery.markitup.js
+++ b/markitup/jquery.markitup.js
@@ -506,7 +506,7 @@
if (e.type === 'keydown') {
if (ctrlKey === true) {
- li = $("a[accesskey="+String.fromCharCode(e.keyCode)+"]", header).parent('li');
+ li = $('a[accesskey="'+String.fromCharCode(e.keyCode)+'"]', header).parent('li');
if (li.length !== 0) {
ctrlKey = false;
setTimeout(function() {
From 93b517cdf6fe39553c69da692ad54d64960dc0e9 Mon Sep 17 00:00:00 2001
From: Jay Salvat
Date: Wed, 23 Feb 2011 21:54:26 +0100
Subject: [PATCH 03/60] Modified Changelog
---
CHANGELOG.md | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index cbdcf88..041cc1d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,10 @@
-markItUp! 1.1.9
+markItUp! 1.1.11
CHANGE LOG
+markItUp! 1.1.11 xxxx-xx-xx
+- Updated: jQuery 1.5
+- Added quotes to attribute selectors
+
markItUp! 1.1.10 2011-02-20
- Improved: Ajax property 'dataType' set to 'text'
- Improved: Ajax property 'global' set to 'false'
From f60743df4f806294496c38ef79a241b4f6cefbf3 Mon Sep 17 00:00:00 2001
From: Jay Salvat
Date: Thu, 24 Mar 2011 10:52:57 +0100
Subject: [PATCH 04/60] Updated to jQuery 1.5.1
---
index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.html b/index.html
index af3834d..d10a801 100644
--- a/index.html
+++ b/index.html
@@ -5,7 +5,7 @@
markItUp! Universal markup editor
-
+
From ce474f1c77e54ebb25998fa79f5b727176199165 Mon Sep 17 00:00:00 2001
From: Jay Salvat
Date: Thu, 24 Mar 2011 10:53:13 +0100
Subject: [PATCH 05/60] Tried to fix the endless IE caret position bug
---
CHANGELOG.md | 1 +
markitup/jquery.markitup.js | 21 ++++++++++-----------
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 041cc1d..3f75a82 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,7 @@ CHANGE LOG
markItUp! 1.1.11 xxxx-xx-xx
- Updated: jQuery 1.5
- Added quotes to attribute selectors
+- Tried to fix the endless IE caret position bug
markItUp! 1.1.10 2011-02-20
- Improved: Ajax property 'dataType' set to 'text'
diff --git a/markitup/jquery.markitup.js b/markitup/jquery.markitup.js
index 15f21c3..e0c7082 100644
--- a/markitup/jquery.markitup.js
+++ b/markitup/jquery.markitup.js
@@ -358,7 +358,7 @@
// Substract linefeed in IE
function fixIeBug(string) {
if ($.browser.msie) {
- return string.length - string.replace(/\r/g, '').length;
+ return string.length - string.replace(/\r*/g, '').length;
}
return 0;
}
@@ -398,16 +398,15 @@
scrollPosition = textarea.scrollTop;
if (document.selection) {
- selection = document.selection;
- if ($.browser.msie) { // ie
- var range = selection.createRange();
- var stored_range = range.duplicate();
- stored_range.moveToElementText(textarea);
- stored_range.setEndPoint('EndToEnd', range);
- var s = stored_range.text.length - range.text.length;
-
- caretPosition = s - (textarea.value.substr(0, s).length - textarea.value.substr(0, s).replace(/\r/g, '').length);
- selection = range.text;
+ selection = document.selection.createRange().text;
+ if ($.browser.msie) { // ie
+ var range = document.selection.createRange(), rangeCopy = range.duplicate();
+ rangeCopy.moveToElementText(textarea);
+ caretPosition = -1;
+ while(rangeCopy.inRange(range)) {
+ rangeCopy.moveStart('character');
+ caretPosition ++;
+ }
} else { // opera
caretPosition = textarea.selectionStart;
}
From 8f464f1665a7e31747f2ec67d7aa1d7c871dd772 Mon Sep 17 00:00:00 2001
From: Jay Salvat
Date: Thu, 24 Mar 2011 10:57:27 +0100
Subject: [PATCH 06/60] Added metakey support for Mac users (michal-krause)
---
CHANGELOG.md | 1 +
markitup/jquery.markitup.js | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3f75a82..9344953 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,7 @@ markItUp! 1.1.11 xxxx-xx-xx
- Updated: jQuery 1.5
- Added quotes to attribute selectors
- Tried to fix the endless IE caret position bug
+- Added metakey support for Mac users (michal-krause)
markItUp! 1.1.10 2011-02-20
- Improved: Ajax property 'dataType' set to 'text'
diff --git a/markitup/jquery.markitup.js b/markitup/jquery.markitup.js
index e0c7082..b1b3365 100644
--- a/markitup/jquery.markitup.js
+++ b/markitup/jquery.markitup.js
@@ -501,7 +501,7 @@
function keyPressed(e) {
shiftKey = e.shiftKey;
altKey = e.altKey;
- ctrlKey = (!(e.altKey && e.ctrlKey)) ? e.ctrlKey : false;
+ ctrlKey = (!(e.altKey && e.ctrlKey)) ? e.ctrlKey || e.metaKey : false;
if (e.type === 'keydown') {
if (ctrlKey === true) {
From 318ee89a60a6ecf6b848c33b1307a7ba97855e30 Mon Sep 17 00:00:00 2001
From: Aleksandr Levchuk
Date: Sat, 16 Apr 2011 18:04:13 -0700
Subject: [PATCH 07/60] Typo fix
---
index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.html b/index.html
index d10a801..83d2a34 100644
--- a/index.html
+++ b/index.html
@@ -60,6 +60,6 @@
<p><strong>markItUp!</strong> is a JavaScript plugin built on the jQuery library. It allows you to turn any textarea into a markup editor. Html, Textile, Wiki Syntax, Markdown, BBcode or even your own markup system can be easily implemented.</p>
-Support the projet : Donate | Contact
+Support the project : Donate | Contact