summaryrefslogtreecommitdiff
path: root/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/org/set.js
diff options
context:
space:
mode:
Diffstat (limited to 'gstudio/static/gstudio/js/orgitdown/orgitdown/sets/org/set.js')
-rw-r--r--gstudio/static/gstudio/js/orgitdown/orgitdown/sets/org/set.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/org/set.js b/gstudio/static/gstudio/js/orgitdown/orgitdown/sets/org/set.js
new file mode 100644
index 00000000..5eed8507
--- /dev/null
+++ b/gstudio/static/gstudio/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'}
+ ]
+}