summaryrefslogtreecommitdiff
path: root/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/set.js
diff options
context:
space:
mode:
Diffstat (limited to 'objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/set.js')
-rw-r--r--objectapp/static/objectapp/js/orgitdown/orgitdown/sets/default/set.js28
1 files changed, 28 insertions, 0 deletions
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 0000000..68a66ac
--- /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'}
+ ]
+}