diff options
author | supriya <supriya@dragbox.(none)> | 2012-07-05 12:50:20 +0530 |
---|---|---|
committer | supriya <supriya@dragbox.(none)> | 2012-07-05 12:50:20 +0530 |
commit | 9b87b91c35b19cf1895084e8696521e332ebf896 (patch) | |
tree | a8ba7af83d390336a2d2dfa3fc05bdf82afc9bb2 /gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default | |
parent | ab428bbe537325f537898f1e2240905d492367e1 (diff) | |
download | gnowsys-9b87b91c35b19cf1895084e8696521e332ebf896.tar.gz |
linked orgitdown to the edit link on the template
Diffstat (limited to 'gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default')
12 files changed, 58 insertions, 0 deletions
diff --git a/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/bold.png b/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/bold.png Binary files differnew file mode 100644 index 0000000..889ae80 --- /dev/null +++ b/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/bold.png diff --git a/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/clean.png b/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/clean.png Binary files differnew file mode 100644 index 0000000..7e7cefb --- /dev/null +++ b/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/clean.png diff --git a/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/image.png b/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/image.png Binary files differnew file mode 100644 index 0000000..fc3c393 --- /dev/null +++ b/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/image.png diff --git a/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/italic.png b/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/italic.png Binary files differnew file mode 100644 index 0000000..8482ac8 --- /dev/null +++ b/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/italic.png diff --git a/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/link.png b/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/link.png Binary files differnew file mode 100644 index 0000000..25eacb7 --- /dev/null +++ b/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/link.png diff --git a/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/list-bullet.png b/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/list-bullet.png Binary files differnew file mode 100644 index 0000000..4a8672b --- /dev/null +++ b/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/list-bullet.png diff --git a/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/list-numeric.png b/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/list-numeric.png Binary files differnew file mode 100644 index 0000000..33b0b8d --- /dev/null +++ b/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/list-numeric.png diff --git a/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/picture.png b/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/picture.png Binary files differnew file mode 100644 index 0000000..4a158fe --- /dev/null +++ b/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/picture.png diff --git a/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/preview.png b/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/preview.png Binary files differnew file mode 100644 index 0000000..a9925a0 --- /dev/null +++ b/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/preview.png diff --git a/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/stroke.png b/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/stroke.png Binary files differnew file mode 100644 index 0000000..612058a --- /dev/null +++ b/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/images/stroke.png diff --git a/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/set.js b/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/set.js new file mode 100644 index 0000000..68a66ac --- /dev/null +++ b/gstudio/static/gstudio/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/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/style.css b/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/default/style.css new file mode 100644 index 0000000..3e0ac4d --- /dev/null +++ b/gstudio/static/gstudio/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);
+}
|