summaryrefslogtreecommitdiff
path: root/objectapp/static/objectapp/js/orgitdown/orgitdown/sets
diff options
context:
space:
mode:
authorsupriya <supriya@dragbox.(none)>2012-07-05 12:50:20 +0530
committersupriya <supriya@dragbox.(none)>2012-07-05 12:50:20 +0530
commit9b87b91c35b19cf1895084e8696521e332ebf896 (patch)
treea8ba7af83d390336a2d2dfa3fc05bdf82afc9bb2 /objectapp/static/objectapp/js/orgitdown/orgitdown/sets
parentab428bbe537325f537898f1e2240905d492367e1 (diff)
downloadgnowsys-9b87b91c35b19cf1895084e8696521e332ebf896.tar.gz
linked orgitdown to the edit link on the template
Diffstat (limited to 'objectapp/static/objectapp/js/orgitdown/orgitdown/sets')
-rw-r--r--objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/bold.pngbin0 -> 304 bytes
-rw-r--r--objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/clean.pngbin0 -> 667 bytes
-rw-r--r--objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/image.pngbin0 -> 516 bytes
-rw-r--r--objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/italic.pngbin0 -> 223 bytes
-rw-r--r--objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/link.pngbin0 -> 343 bytes
-rw-r--r--objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/list-bullet.pngbin0 -> 344 bytes
-rw-r--r--objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/list-numeric.pngbin0 -> 357 bytes
-rw-r--r--objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/picture.pngbin0 -> 606 bytes
-rw-r--r--objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/preview.pngbin0 -> 537 bytes
-rw-r--r--objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/stroke.pngbin0 -> 269 bytes
-rw-r--r--objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/set.js28
-rw-r--r--objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/style.css30
-rw-r--r--objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/bold.pngbin0 -> 304 bytes
-rw-r--r--objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/clean.pngbin0 -> 667 bytes
-rw-r--r--objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/image.pngbin0 -> 516 bytes
-rw-r--r--objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/italic.pngbin0 -> 223 bytes
-rw-r--r--objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/link.pngbin0 -> 343 bytes
-rw-r--r--objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/list-bullet.pngbin0 -> 344 bytes
-rw-r--r--objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/list-numeric.pngbin0 -> 357 bytes
-rw-r--r--objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/picture.pngbin0 -> 606 bytes
-rw-r--r--objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/preview.pngbin0 -> 537 bytes
-rw-r--r--objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/stroke.pngbin0 -> 269 bytes
-rw-r--r--objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/set.js30
-rw-r--r--objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/style.css30
-rw-r--r--objectapp/static/objectapp/js/orgitdown/orgitdown/sets/savedata.js15
25 files changed, 133 insertions, 0 deletions
diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/bold.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/bold.png
new file mode 100644
index 00000000..889ae80e
--- /dev/null
+++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/bold.png
Binary files differ
diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/clean.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/clean.png
new file mode 100644
index 00000000..7e7cefb8
--- /dev/null
+++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/clean.png
Binary files differ
diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/image.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/image.png
new file mode 100644
index 00000000..fc3c393c
--- /dev/null
+++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/image.png
Binary files differ
diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/italic.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/italic.png
new file mode 100644
index 00000000..8482ac8c
--- /dev/null
+++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/italic.png
Binary files differ
diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/link.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/link.png
new file mode 100644
index 00000000..25eacb7c
--- /dev/null
+++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/link.png
Binary files differ
diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/list-bullet.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/list-bullet.png
new file mode 100644
index 00000000..4a8672bd
--- /dev/null
+++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/list-bullet.png
Binary files differ
diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/list-numeric.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/list-numeric.png
new file mode 100644
index 00000000..33b0b8df
--- /dev/null
+++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/list-numeric.png
Binary files differ
diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/picture.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/picture.png
new file mode 100644
index 00000000..4a158fef
--- /dev/null
+++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/picture.png
Binary files differ
diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/preview.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/preview.png
new file mode 100644
index 00000000..a9925a06
--- /dev/null
+++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/preview.png
Binary files differ
diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/stroke.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/stroke.png
new file mode 100644
index 00000000..612058a7
--- /dev/null
+++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/stroke.png
Binary files differ
diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/set.js b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/set.js
new file mode 100644
index 00000000..68a66ac0
--- /dev/null
+++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/set.js
@@ -0,0 +1,28 @@
+// ----------------------------------------------------------------------------
+// orgitdown!
+// ----------------------------------------------------------------------------
+// Html tags
+// http://en.wikipedia.org/wiki/html
+// ----------------------------------------------------------------------------
+// Basic set. Feel free to add more tags
+// ----------------------------------------------------------------------------
+var mySettings = {
+ onShiftEnter: {keepDefault:false, replaceWith:'<br />\n'},
+ onCtrlEnter: {keepDefault:false, openWith:'\n<p>', closeWith:'</p>'},
+ onTab: {keepDefault:false, replaceWith:' '},
+
+ markupSet: [
+ {name:'Bold', key:'B', openWith:'(!(<strong>|!|<b>)!)', closeWith:'(!(</strong>|!|</b>)!)' },
+ {name:'Italic', key:'I', openWith:'(!(<em>|!|<i>)!)', closeWith:'(!(</em>|!|</i>)!)' },
+ {name:'Stroke through', key:'S', openWith:'-', closeWith:'-' },
+ {separator:'---------------' },
+ {name:'Bulleted List', openWith:' +', closeWith:'', multiline:true, openBlockWith:'<ul>\n', closeBlockWith:'\n</ul>'},
+ {name:'Numeric List', openWith:' 1', closeWith:'', multiline:true, openBlockWith:'<ol>\n', closeBlockWith:'\n</ol>'},
+ {separator:'---------------' },
+ {name:'Picture', key:'P', replaceWith:'<img src="[![Source:!:http://]!]" alt="[![Alternative text]!]" />' },
+ {name:'Link', key:'L', openWith:'<a href="[![Link:!:http://]!]"(!( title="[![Title]!]")!)>', closeWith:'</a>', placeHolder:'Your text to link...' },
+ {separator:'---------------' },
+ {name:'Clean', className:'clean', replaceWith:function(orgitdown) { return orgitdown.selection.replace(/<(.*?)>/g, "") } },
+ {name:'Preview', className:'preview', call:'preview'}
+ ]
+}
diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/style.css b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/style.css
new file mode 100644
index 00000000..3e0ac4d3
--- /dev/null
+++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/style.css
@@ -0,0 +1,30 @@
+.orgitdown .orgitdownButton1 a {
+ background-image:url(images/bold.png);
+}
+.orgitdown .orgitdownButton2 a {
+ background-image:url(images/italic.png);
+}
+.orgitdown .orgitdownButton3 a {
+ background-image:url(images/stroke.png);
+}
+
+.orgitdown .orgitdownButton4 a {
+ background-image:url(images/list-bullet.png);
+}
+.orgitdown .orgitdownButton5 a {
+ background-image:url(images/list-numeric.png);
+}
+
+.orgitdown .orgitdownButton6 a {
+ background-image:url(images/picture.png);
+}
+.orgitdown .orgitdownButton7 a {
+ background-image:url(images/link.png);
+}
+
+.orgitdown .orgitdownButton8 a {
+ background-image:url(images/clean.png);
+}
+.orgitdown .preview a {
+ background-image:url(images/preview.png);
+}
diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/bold.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/bold.png
new file mode 100644
index 00000000..889ae80e
--- /dev/null
+++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/bold.png
Binary files differ
diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/clean.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/clean.png
new file mode 100644
index 00000000..7e7cefb8
--- /dev/null
+++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/clean.png
Binary files differ
diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/image.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/image.png
new file mode 100644
index 00000000..fc3c393c
--- /dev/null
+++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/image.png
Binary files differ
diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/italic.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/italic.png
new file mode 100644
index 00000000..8482ac8c
--- /dev/null
+++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/italic.png
Binary files differ
diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/link.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/link.png
new file mode 100644
index 00000000..25eacb7c
--- /dev/null
+++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/link.png
Binary files differ
diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/list-bullet.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/list-bullet.png
new file mode 100644
index 00000000..4a8672bd
--- /dev/null
+++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/list-bullet.png
Binary files differ
diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/list-numeric.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/list-numeric.png
new file mode 100644
index 00000000..33b0b8df
--- /dev/null
+++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/list-numeric.png
Binary files differ
diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/picture.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/picture.png
new file mode 100644
index 00000000..4a158fef
--- /dev/null
+++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/picture.png
Binary files differ
diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/preview.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/preview.png
new file mode 100644
index 00000000..a9925a06
--- /dev/null
+++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/preview.png
Binary files differ
diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/stroke.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/stroke.png
new file mode 100644
index 00000000..612058a7
--- /dev/null
+++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/stroke.png
Binary files differ
diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/set.js b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/set.js
new file mode 100644
index 00000000..5eed8507
--- /dev/null
+++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/set.js
@@ -0,0 +1,30 @@
+// ----------------------------------------------------------------------------
+// orgitdown!
+// ----------------------------------------------------------------------------
+// Html tags
+// http://en.wikipedia.org/wiki/html
+// ----------------------------------------------------------------------------
+// Basic set. Feel free to add more tags
+// ----------------------------------------------------------------------------
+var mySettings = {
+
+ onShiftEnter: {keepDefault:false, replaceWith:'<br />\n'},
+ onCtrlEnter: {keepDefault:false, openWith:'\n<p>', closeWith:'</p>'},
+ onTab: {keepDefault:false, replaceWith:' '},
+ onAltEnter: {keepDefault:false, replaceWith:'\n* '},
+ onAltrightArrow: {keepDefault:false, replaceWith:'*'},
+ markupSet: [
+ {name:'Bold', key:'B', openWith:'*', closeWith:'*' },
+ {name:'Italic', key:'I', openWith:'/', closeWith:'/' },
+ {name:'Stroke through', key:'S', openWith:'+', closeWith:'+' },
+ {separator:'---------------' },
+ {name:'Bulleted List', openWith:' - ', closeWith:'', multiline:true, openBlockWith:'\n', closeBlockWith:'\n'},
+ {name:'Numeric List', openWith:' 1. ', closeWith:'', multiline:true, openBlockWith:'\n', closeBlockWith:'\n'},
+ {separator:'---------------' },
+ {name:'Picture', key:'P', replaceWith:'[[file:fileName.jpg]]' },
+ {name:'Link', key:'L', openWith:'[[http://your.address.com here/][Your visible link text here]]', closeWith:'', placeHolder:'' },
+ {separator:'---------------' },
+ {name:'Clean', className:'clean', replaceWith:function(orgitdown) { return orgitdown.selection.replace(/<(.*?)>/g, "") } },
+ {name:'Preview', className:'preview', call:'preview'}
+ ]
+}
diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/style.css b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/style.css
new file mode 100644
index 00000000..3e0ac4d3
--- /dev/null
+++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/style.css
@@ -0,0 +1,30 @@
+.orgitdown .orgitdownButton1 a {
+ background-image:url(images/bold.png);
+}
+.orgitdown .orgitdownButton2 a {
+ background-image:url(images/italic.png);
+}
+.orgitdown .orgitdownButton3 a {
+ background-image:url(images/stroke.png);
+}
+
+.orgitdown .orgitdownButton4 a {
+ background-image:url(images/list-bullet.png);
+}
+.orgitdown .orgitdownButton5 a {
+ background-image:url(images/list-numeric.png);
+}
+
+.orgitdown .orgitdownButton6 a {
+ background-image:url(images/picture.png);
+}
+.orgitdown .orgitdownButton7 a {
+ background-image:url(images/link.png);
+}
+
+.orgitdown .orgitdownButton8 a {
+ background-image:url(images/clean.png);
+}
+.orgitdown .preview a {
+ background-image:url(images/preview.png);
+}
diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/savedata.js b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/savedata.js
new file mode 100644
index 00000000..f407075d
--- /dev/null
+++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/savedata.js
@@ -0,0 +1,15 @@
+ $.noConflict();
+ jQuery(document).ready(function($) {
+ // Code that uses jQuery's $ can follow here.
+ $("#editdata").click(function(){
+ // $("html").css({"margin":"0","padding": "0","overflow":"hidden","height": "100%"});
+ $("#chart").hide();
+ document.getElementById('gnoweditor').style.visibility="visible";
+ //$("#gnoweditor").show();
+ $("#gnoweditor").orgitdown(mySettings);
+ // alert($("#gnoweditor").val());
+
+ });
+
+ });
+