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 /objectapp/static/objectapp/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 'objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default')
12 files changed, 58 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 Binary files differnew file mode 100644 index 00000000..889ae80e --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/bold.png 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 Binary files differnew file mode 100644 index 00000000..7e7cefb8 --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/clean.png 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 Binary files differnew file mode 100644 index 00000000..fc3c393c --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/image.png 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 Binary files differnew file mode 100644 index 00000000..8482ac8c --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/italic.png 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 Binary files differnew file mode 100644 index 00000000..25eacb7c --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/link.png 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 Binary files differnew file mode 100644 index 00000000..4a8672bd --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/list-bullet.png 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 Binary files differnew file mode 100644 index 00000000..33b0b8df --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/list-numeric.png 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 Binary files differnew file mode 100644 index 00000000..4a158fef --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/picture.png 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 Binary files differnew file mode 100644 index 00000000..a9925a06 --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/preview.png 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 Binary files differnew file mode 100644 index 00000000..612058a7 --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/images/stroke.png 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);
+}
|