diff options
Diffstat (limited to 'objectapp/static/objectapp/js/orgitdown/orgitdown')
47 files changed, 1063 insertions, 0 deletions
diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/README.rst b/objectapp/static/objectapp/js/orgitdown/orgitdown/README.rst new file mode 100644 index 00000000..abd27e77 --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/README.rst @@ -0,0 +1,42 @@ +============== +Orgitup ! +============== + +Orgitup is a powerful editor which will implement features of Emacs org mode and proposes to give users a simple web based tool which has org functionalities akin to Emacs + +Features +======== + +The first code implements basic feature set of Emacs org mode.The current code base implements the following features: + +* Bold +* Italic +* Strike through +* Headings ( on alt enter ) +* Bullets ( non numeric ) + +Slowly more and more features will be added. + + +Credits +============ +The code base for this project has been taken from Jay Salvat's MarkItUp ! Editor.Very heartfelt thanks to him and the MarkItUp team ! + +Special thanks to Supriya Sawant of Gnowledge Lab for implementing the features + + +Mailing list +============ + +Join this list if you are intersted in using or contributing as a hacker. + +http://gnowledge.org/cgi-bin/mailman/listinfo/gnowsys-dev + + +Bottom Line +============ +Project of the gnowledge Lab +http://lab.gnowledge.org/ + + + diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/jquery.orgitdown.js b/objectapp/static/objectapp/js/orgitdown/orgitdown/jquery.orgitdown.js new file mode 100755 index 00000000..fe3a487d --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/jquery.orgitdown.js @@ -0,0 +1,615 @@ +// ---------------------------------------------------------------------------- +// orgitdown! Universal MarkUp Engine, JQuery plugin + +// Dual licensed under the MIT and GPL licenses. +// ---------------------------------------------------------------------------- +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +// ---------------------------------------------------------------------------- +(function($) { + $.fn.orgitdown = function(settings, extraSettings) { + var options, ctrlKey, shiftKey, altKey; + ctrlKey = shiftKey = altKey = false; + + options = { id: '', + nameSpace: '', + root: '', + previewHandler: false, + previewInWindow: '', // 'width=800, height=600, resizable=yes, scrollbars=yes' + previewAutoRefresh: true, + previewPosition: 'after', + previewTemplatePath: '~/templates/preview.html', + previewParser: false, + previewParserPath: '', + previewParserVar: 'data', + resizeHandle: true, + beforeInsert: '', + afterInsert: '', + onEnter: {}, + onShiftEnter: {}, + onCtrlEnter: {}, + onTab: {}, + onAltEnter: {}, + onAltrightArrow: {}, + markupSet: [ { /* set */ } ] + }; + $.extend(options, settings, extraSettings); + + // compute orgitdown! path + if (!options.root) { + $('script').each(function(a, tag) { + miuScript = $(tag).get(0).src.match(/(.*)jquery\.orgitdown(\.pack)?\.js$/); + if (miuScript !== null) { + options.root = miuScript[1]; + } + }); + } + + return this.each(function() { + var $$, textarea, levels, scrollPosition, caretPosition, caretOffset, + clicked, hash, header, footer, previewWindow, template, iFrame, abort; + $$ = $(this); + textarea = this; + levels = []; + abort = false; + scrollPosition = caretPosition = 0; + caretOffset = -1; + + options.previewParserPath = localize(options.previewParserPath); + options.previewTemplatePath = localize(options.previewTemplatePath); + + // apply the computed path to ~/ + function localize(data, inText) { + if (inText) { + return data.replace(/("|')~\//g, "$1"+options.root); + } + return data.replace(/^~\//, options.root); + } + + // init and build editor + function init() { + id = ''; nameSpace = ''; + if (options.id) { + id = 'id="'+options.id+'"'; + } else if ($$.attr("id")) { + id = 'id="orgitdown'+($$.attr("id").substr(0, 1).toUpperCase())+($$.attr("id").substr(1))+'"'; + + } + if (options.nameSpace) { + nameSpace = 'class="'+options.nameSpace+'"'; + } + $$.wrap('<div '+nameSpace+'></div>'); + $$.wrap('<div '+id+' class="orgitdown"></div>'); + $$.wrap('<div class="orgitdownContainer"></div>'); + $$.addClass("orgitdownEditor"); + + // add the header before the textarea + header = $('<div class="orgitdownHeader"></div>').insertBefore($$); + $(dropMenus(options.markupSet)).appendTo(header); + + // add the footer after the textarea + footer = $('<div class="orgitdownFooter"></div>').insertAfter($$); + + // add the resize handle after textarea + if (options.resizeHandle === true && $.browser.safari !== true) { + resizeHandle = $('<div class="orgitdownResizeHandle"></div>') + .insertAfter($$) + .bind("mousedown.orgitdown", function(e) { + var h = $$.height(), y = e.clientY, mouseMove, mouseUp; + mouseMove = function(e) { + $$.css("height", Math.max(20, e.clientY+h-y)+"px"); + return false; + }; + mouseUp = function(e) { + $("html").unbind("mousemove.orgitdown", mouseMove).unbind("mouseup.orgitdown", mouseUp); + return false; + }; + $("html").bind("mousemove.orgitdown", mouseMove).bind("mouseup.orgitdown", mouseUp); + }); + footer.append(resizeHandle); + } + + // listen key events + $$.bind('keydown.orgitdown', keyPressed).bind('keyup', keyPressed); + + // bind an event to catch external calls + $$.bind("insertion.orgitdown", function(e, settings) { + if (settings.target !== false) { + get(); + } + if (textarea === $.orgitdown.focused) { + markup(settings); + } + }); + + // remember the last focus + $$.bind('focus.orgitdown', function() { + $.orgitdown.focused = this; + }); + } + + // recursively build header with dropMenus from markupset + function dropMenus(markupSet) { + var ul = $('<ul></ul>'), i = 0; + $('li:hover > ul', ul).css('display', 'block'); + $.each(markupSet, function() { + var button = this, t = '', title, li, j; + title = (button.key) ? (button.name||'')+' [Ctrl+'+button.key+']' : (button.name||''); + key = (button.key) ? 'accesskey="'+button.key+'"' : ''; + if (button.separator) { + li = $('<li class="orgitdownSeparator">'+(button.separator||'')+'</li>').appendTo(ul); + } else { + i++; + for (j = levels.length -1; j >= 0; j--) { + t += levels[j]+"-"; + } + li = $('<li class="orgitdownButton orgitdownButton'+t+(i)+' '+(button.className||'')+'"><a href="" '+key+' title="'+title+'">'+(button.name||'')+'</a></li>') + .bind("contextmenu.orgitdown", function() { // prevent contextmenu on mac and allow ctrl+click + return false; + }).bind('click.orgitdown', function() { + return false; + }).bind("focusin.orgitdown", function(){ + $$.focus(); + }).bind('mouseup', function() { + if (button.call) { + eval(button.call)(); + } + setTimeout(function() { markup(button) },1); + return false; + }).bind('mouseenter.orgitdown', function() { + $('> ul', this).show(); + $(document).one('click', function() { // close dropmenu if click outside + $('ul ul', header).hide(); + } + ); + }).bind('mouseleave.orgitdown', function() { + $('> ul', this).hide(); + }).appendTo(ul); + if (button.dropMenu) { + levels.push(i); + $(li).addClass('orgitdownDropMenu').append(dropMenus(button.dropMenu)); + } + } + }); + levels.pop(); + return ul; + } + + // orgitdown! markups + function magicMarkups(string) { + if (string) { + string = string.toString(); + string = string.replace(/\(\!\(([\s\S]*?)\)\!\)/g, + function(x, a) { + var b = a.split('|!|'); + if (altKey === true) { + return (b[1] !== undefined) ? b[1] : b[0]; + } else { + return (b[1] === undefined) ? "" : b[0]; + } + } + ); + // [![prompt]!], [![prompt:!:value]!] + string = string.replace(/\[\!\[([\s\S]*?)\]\!\]/g, + function(x, a) { + var b = a.split(':!:'); + if (abort === true) { + return false; + } + value = prompt(b[0], (b[1]) ? b[1] : ''); + if (value === null) { + abort = true; + } + return value; + } + ); + return string; + } + return ""; + } + + // prepare action + function prepare(action) { + if ($.isFunction(action)) { + action = action(hash); + } + return magicMarkups(action); + } + + // build block to insert + function build(string) { + var openWith = prepare(clicked.openWith); + var placeHolder = prepare(clicked.placeHolder); + var replaceWith = prepare(clicked.replaceWith); + var closeWith = prepare(clicked.closeWith); + var openBlockWith = prepare(clicked.openBlockWith); + var closeBlockWith = prepare(clicked.closeBlockWith); + var multiline = clicked.multiline; + + if (replaceWith !== "") { + block = openWith + replaceWith + closeWith; + } else if (selection === '' && placeHolder !== '') { + block = openWith + placeHolder + closeWith; + } else { + string = string || selection; + + var lines = [string], blocks = []; + + if (multiline === true) { + lines = string.split(/\r?\n/); + } + + for (var l = 0; l < lines.length; l++) { + line = lines[l]; + var trailingSpaces; + if (trailingSpaces = line.match(/ *$/)) { + blocks.push(openWith + line.replace(/ *$/g, '') + closeWith + trailingSpaces); + } else { + blocks.push(openWith + line + closeWith); + } + } + + block = blocks.join("\n"); + } + + block = openBlockWith + block + closeBlockWith; + + return { block:block, + openWith:openWith, + replaceWith:replaceWith, + placeHolder:placeHolder, + closeWith:closeWith + }; + } + + // define markup to insert + function markup(button) { + var len, j, n, i; + hash = clicked = button; + get(); + $.extend(hash, { line:"", + root:options.root, + textarea:textarea, + selection:(selection||''), + caretPosition:caretPosition, + ctrlKey:ctrlKey, + shiftKey:shiftKey, + altKey:altKey + + } + ); + // callbacks before insertion + prepare(options.beforeInsert); + prepare(clicked.beforeInsert); + if ((ctrlKey === true && shiftKey === true) || button.multiline === true) { + prepare(clicked.beforeMultiInsert); + } + $.extend(hash, { line:1 }); + + if ((ctrlKey === true && shiftKey === true)) { + lines = selection.split(/\r?\n/); + for (j = 0, n = lines.length, i = 0; i < n; i++) { + if ($.trim(lines[i]) !== '') { + $.extend(hash, { line:++j, selection:lines[i] } ); + lines[i] = build(lines[i]).block; + } else { + lines[i] = ""; + } + } + + string = { block:lines.join('\n')}; + start = caretPosition; + len = string.block.length + (($.browser.opera) ? n-1 : 0); + } else if (ctrlKey === true) { + string = build(selection); + start = caretPosition + string.openWith.length; + len = string.block.length - string.openWith.length - string.closeWith.length; + len = len - (string.block.match(/ $/) ? 1 : 0); + len -= fixIeBug(string.block); + } else if (shiftKey === true) { + string = build(selection); + start = caretPosition; + len = string.block.length; + len -= fixIeBug(string.block); + } else { + string = build(selection); + start = caretPosition + string.block.length ; + len = 0; + start -= fixIeBug(string.block); + } + if ((selection === '' && string.replaceWith === '')) { + caretOffset += fixOperaBug(string.block); + + start = caretPosition + string.openWith.length; + len = string.block.length - string.openWith.length - string.closeWith.length; + + caretOffset = $$.val().substring(caretPosition, $$.val().length).length; + caretOffset -= fixOperaBug($$.val().substring(0, caretPosition)); + } + $.extend(hash, { caretPosition:caretPosition, scrollPosition:scrollPosition } ); + + if (string.block !== selection && abort === false) { + insert(string.block); + set(start, len); + } else { + caretOffset = -1; + } + get(); + + $.extend(hash, { line:'', selection:selection }); + + // callbacks after insertion + if ((ctrlKey === true && shiftKey === true) || button.multiline === true) { + prepare(clicked.afterMultiInsert); + } + prepare(clicked.afterInsert); + prepare(options.afterInsert); + + // refresh preview if opened + if (previewWindow && options.previewAutoRefresh) { + refreshPreview(); + } + + // reinit keyevent + shiftKey = altKey = ctrlKey = abort = false; + } + + // Substract linefeed in Opera + function fixOperaBug(string) { + if ($.browser.opera) { + return string.length - string.replace(/\n*/g, '').length; + } + return 0; + } + // Substract linefeed in IE + function fixIeBug(string) { + if ($.browser.msie) { + return string.length - string.replace(/\r*/g, '').length; + } + return 0; + } + + // add markup + function insert(block) { + if (document.selection) { + var newSelection = document.selection.createRange(); + newSelection.text = block; + } else { + textarea.value = textarea.value.substring(0, caretPosition) + block + textarea.value.substring(caretPosition + selection.length, textarea.value.length); + } + } + + // set a selection + function set(start, len) { + if (textarea.createTextRange){ + // quick fix to make it work on Opera 9.5 + if ($.browser.opera && $.browser.version >= 9.5 && len == 0) { + return false; + } + range = textarea.createTextRange(); + range.collapse(true); + range.moveStart('character', start); + range.moveEnd('character', len); + range.select(); + } else if (textarea.setSelectionRange ){ + textarea.setSelectionRange(start, start + len); + } + textarea.scrollTop = scrollPosition; + textarea.focus(); + } + + // get the selection + function get() { + textarea.focus(); + + scrollPosition = textarea.scrollTop; + if (document.selection) { + selection = document.selection.createRange().text; + if ($.browser.msie) { // ie + var range = document.selection.createRange(), rangeCopy = range.duplicate(); + rangeCopy.moveToElementText(textarea); + caretPosition = -1; + while(rangeCopy.inRange(range)) { + rangeCopy.moveStart('character'); + caretPosition ++; + } + } else { // opera + caretPosition = textarea.selectionStart; + } + } else { // gecko & webkit + caretPosition = textarea.selectionStart; + + selection = textarea.value.substring(caretPosition, textarea.selectionEnd); + } + return selection; + } + + // open preview window + function preview() { + if (typeof options.previewHandler === 'function') { + previewWindow = true; + } else if (!previewWindow || previewWindow.closed) { + if (options.previewInWindow) { + previewWindow = window.open('', 'preview', options.previewInWindow); + $(window).unload(function() { + previewWindow.close(); + }); + } else { + iFrame = $('<iframe class="orgitdownPreviewFrame"></iframe>'); + if (options.previewPosition == 'after') { + iFrame.insertAfter(footer); + } else { + iFrame.insertBefore(header); + } + previewWindow = iFrame[iFrame.length - 1].contentWindow || frame[iFrame.length - 1]; + } + } else if (altKey === true) { + if (iFrame) { + iFrame.remove(); + } else { + previewWindow.close(); + } + previewWindow = iFrame = false; + } + if (!options.previewAutoRefresh) { + refreshPreview(); + } + if (options.previewInWindow) { + previewWindow.focus(); + } + } + + // refresh Preview window + function refreshPreview() { + renderPreview(); + } + + function renderPreview() { + var phtml; + if (options.previewHandler && typeof options.previewHandler === 'function') { + options.previewHandler( $$.val() ); + } else if (options.previewParser && typeof options.previewParser === 'function') { + var data = options.previewParser( $$.val() ); + writeInPreview( localize(data, 1) ); + } else if (options.previewParserPath !== '') { + $.ajax({ + type: 'POST', + dataType: 'text', + global: false, + url: options.previewParserPath, + data: options.previewParserVar+'='+encodeURIComponent($$.val()), + success: function(data) { + writeInPreview( localize(data, 1) ); + } + }); + } else { + if (!template) { + $.ajax({ + url: options.previewTemplatePath, + dataType: 'text', + global: false, + success: function(data) { + writeInPreview( localize(data, 1).replace(/<!-- content -->/g, $$.val()) ); + } + }); + } + } + return false; + } + + function writeInPreview(data) { + if (previewWindow.document) { + try { + sp = previewWindow.document.documentElement.scrollTop + } catch(e) { + sp = 0; + } + previewWindow.document.open(); + previewWindow.document.write(data); + previewWindow.document.close(); + previewWindow.document.documentElement.scrollTop = sp; + } + } + + // set keys pressed + function keyPressed(e) { + shiftKey = e.shiftKey; + altKey = e.altKey; + + + ctrlKey = (!(e.altKey && e.ctrlKey)) ? (e.ctrlKey || e.metaKey) : false; + + if (e.type === 'keydown') { + if (ctrlKey === true) { + li = $('a[accesskey="'+String.fromCharCode(e.keyCode)+'"]', header).parent('li'); + if (li.length !== 0) { + ctrlKey = false; + setTimeout(function() { + li.triggerHandler('mouseup'); + },1); + return false; + } + } + if (e.keyCode === 13 || e.keyCode === 10) { // Enter key + if (ctrlKey === true) { // Enter + Ctrl + ctrlKey = false; + markup(options.onCtrlEnter); + return options.onCtrlEnter.keepDefault; + } else if (shiftKey === true) { // Enter + Shift + shiftKey = false; + markup(options.onShiftEnter) + return options.onShiftEnter.keepDefault; + }else if (altKey === true) { // Alt + Enter + altKey = false; + + markup(options.onAltEnter); + return options.onAltEnter.keepDefault; + }else { // only Enter + markup(options.onEnter); + return options.onEnter.keepDefault; + } + } + if (e.keyCode === 39) { // right arrow key + if (altKey === true){ //Alt + right arrow + altKey = false; + markup(options.onAltrightArrow); + return options.onAltrightArrow.keepDefault; + }} + if (e.keyCode === 9) { // Tab key + if (shiftKey == true || ctrlKey == true || altKey == true) { + return false; + } + if (caretOffset !== -1) { + get(); + caretOffset = $$.val().length - caretOffset; + set(caretOffset, 0); + caretOffset = -1; + return false; + } else { + markup(options.onTab); + return options.onTab.keepDefault; + } + } + } + } + + init(); + }); + }; + + $.fn.orgitdownRemove = function() { + return this.each(function() { + var $$ = $(this).unbind(".orgitdown").removeClass('orgitdownEditor'); + $$.parent('div').parent('div.orgitdown').parent('div').replaceWith($$); + } + ); + }; + + $.orgitdown = function(settings) { + var options = { target:false }; + $.extend(options, settings); + if (options.target) { + return $(options.target).each(function() { + $(this).focus(); + $(this).trigger('insertion', [options]); + }); + } else { + $('textarea').trigger('insertion', [options]); + } + }; +})(jQuery); 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);
+}
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 Binary files differnew file mode 100644 index 00000000..889ae80e --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/bold.png 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 Binary files differnew file mode 100644 index 00000000..7e7cefb8 --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/clean.png 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 Binary files differnew file mode 100644 index 00000000..fc3c393c --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/image.png 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 Binary files differnew file mode 100644 index 00000000..8482ac8c --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/italic.png 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 Binary files differnew file mode 100644 index 00000000..25eacb7c --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/link.png 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 Binary files differnew file mode 100644 index 00000000..4a8672bd --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/list-bullet.png 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 Binary files differnew file mode 100644 index 00000000..33b0b8df --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/list-numeric.png 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 Binary files differnew file mode 100644 index 00000000..4a158fef --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/picture.png 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 Binary files differnew file mode 100644 index 00000000..a9925a06 --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/preview.png 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 Binary files differnew file mode 100644 index 00000000..612058a7 --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/sets/org/images/stroke.png 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()); + + }); + + }); + diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-container.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-container.png Binary files differnew file mode 100644 index 00000000..ec38b8e1 --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-container.png diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-editor-bbcode.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-editor-bbcode.png Binary files differnew file mode 100644 index 00000000..39cdbd83 --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-editor-bbcode.png diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-editor-dotclear.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-editor-dotclear.png Binary files differnew file mode 100644 index 00000000..b3188dcd --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-editor-dotclear.png diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-editor-html.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-editor-html.png Binary files differnew file mode 100644 index 00000000..11bff456 --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-editor-html.png diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-editor-json.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-editor-json.png Binary files differnew file mode 100644 index 00000000..e898c1d7 --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-editor-json.png diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-editor-markdown.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-editor-markdown.png Binary files differnew file mode 100644 index 00000000..c1997152 --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-editor-markdown.png diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-editor-textile.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-editor-textile.png Binary files differnew file mode 100644 index 00000000..3ab1e9f6 --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-editor-textile.png diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-editor-wiki.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-editor-wiki.png Binary files differnew file mode 100644 index 00000000..7887181c --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-editor-wiki.png diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-editor-xml.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-editor-xml.png Binary files differnew file mode 100644 index 00000000..33b1c5d8 --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-editor-xml.png diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-editor.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-editor.png Binary files differnew file mode 100644 index 00000000..31fae12e --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/bg-editor.png diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/handle.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/handle.png Binary files differnew file mode 100644 index 00000000..3993b203 --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/handle.png diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/menu.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/menu.png Binary files differnew file mode 100644 index 00000000..de337c88 --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/menu.png diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/submenu.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/submenu.png Binary files differnew file mode 100644 index 00000000..03d1977a --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/images/submenu.png diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/style.css b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/style.css new file mode 100644 index 00000000..ce37e6d7 --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/orgitdown/style.css @@ -0,0 +1,143 @@ +.orgitdown * { + margin:0px; padding:0px; + outline:none; +} +.orgitdown a:link, +.orgitdown a:visited { + color:#000; + text-decoration:none; +} +.orgitdown { + width:700px; + margin:5px 0 5px 0; + border:5px solid #F5F5F5; +} +.orgitdownContainer { + border:1px solid #3C769D; + background:#FFF url(images/bg-container.png) repeat-x top left; + padding:5px 5px 2px 5px; + font:11px Verdana, Arial, Helvetica, sans-serif; +} +.orgitdownEditor { + font:12px 'Courier New', Courier, monospace; + padding:5px 5px 5px 35px; + border:3px solid #3C769D; + width:643px; + height:320px; + background:#FFF url(images/bg-editor.png) no-repeat; + clear:both; + line-height:18px; + overflow:auto; +} +.orgitdownPreviewFrame { + overflow:auto; + background-color:#FFFFFF; + border:1px solid #3C769D; + width:99.9%; + height:300px; + margin:5px 0; +} +.orgitdownFooter { + width:100%; + cursor:n-resize; +} +.orgitdownResizeHandle { + overflow:hidden; + width:22px; height:5px; + margin-left:auto; + margin-right:auto; + background-image:url(images/handle.png); + cursor:n-resize; +} +/***************************************************************************************/ +/* first row of buttons */ +.orgitdownHeader ul li { + list-style:none; + float:left; + position:relative; +} +.orgitdownHeader ul li ul{ + display:none; +} +.orgitdownHeader ul li:hover > ul{ + display:block; +} +.orgitdownHeader ul .orgitdownDropMenu { + background:transparent url(images/menu.png) no-repeat 115% 50%; + margin-right:5px; +} +.orgitdownHeader ul .orgitdownDropMenu li { + margin-right:0px; +} +.orgitdownHeader ul .orgitdownSeparator { + margin:0 10px; + width:1px; + height:16px; + overflow:hidden; + background-color:#CCC; +} +.orgitdownHeader ul ul .orgitdownSeparator { + width:auto; height:1px; + margin:0px; +} +/* next rows of buttons */ +.orgitdownHeader ul ul { + display:none; + position:absolute; + top:18px; left:0px; + background:#F5F5F5; + border:1px solid #3C769D; + height:inherit; +} +.orgitdownHeader ul ul li { + float:none; + border-bottom:1px solid #3C769D; +} +.orgitdownHeader ul ul .orgitdownDropMenu { + background:#F5F5F5 url(images/submenu.png) no-repeat 100% 50%; +} +/* next rows of buttons */ +.orgitdownHeader ul ul ul { + position:absolute; + top:-1px; left:150px; +} +.orgitdownHeader ul ul ul li { + float:none; +} +.orgitdownHeader ul a { + display:block; + width:16px; height:16px; + text-indent:-10000px; + background-repeat:no-repeat; + padding:3px; + margin:0px; +} +.orgitdownHeader ul ul a { + display:block; + padding-left:0px; + text-indent:0; + width:120px; + padding:5px 5px 5px 25px; + background-position:2px 50%; +} +.orgitdownHeader ul ul a:hover { + color:#FFF; + background-color:#3C769D; +} +/***************************************************************************************/ +.html .orgitdownEditor { + background-image:url(images/bg-editor-html.png); +} +.markdown .orgitdownEditor { + background-image:url(images/bg-editor-markdown.png); +} +.textile .orgitdownEditor { + background-image:url(images/bg-editor-textile.png); +} +.bbcode .orgitdownEditor { + background-image:url(images/bg-editor-bbcode.png); +} +.wiki .orgitdownEditor, +.dotclear .orgitdownEditor { + background-image:url(images/bg-editor-wiki.png); +} diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/simple/images/handle.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/simple/images/handle.png Binary files differnew file mode 100644 index 00000000..3993b203 --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/simple/images/handle.png diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/simple/images/menu.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/simple/images/menu.png Binary files differnew file mode 100644 index 00000000..44a07afd --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/simple/images/menu.png diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/simple/images/submenu.png b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/simple/images/submenu.png Binary files differnew file mode 100644 index 00000000..03d1977a --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/simple/images/submenu.png diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/simple/style.css b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/simple/style.css new file mode 100644 index 00000000..440069ff --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/skins/simple/style.css @@ -0,0 +1,114 @@ +.orgitdown * { + margin:0px; padding:0px; + outline:none; +} +.orgitdown a:link, +.orgitdown a:visited { + color:#000; + text-decoration:none; +} +.orgitdown { + width:700px; + margin:5px 0 5px 0; +} +.orgitdownContainer { + font:11px Verdana, Arial, Helvetica, sans-serif; +} +.orgitdownEditor { + font:12px 'Courier New', Courier, monospace; + padding:5px; + width:690px; + height:320px; + clear:both; + line-height:18px; + overflow:auto; +} +.orgitdownPreviewFrame { + overflow:auto; + background-color:#FFF; + width:99.9%; + height:300px; + margin:5px 0; +} +.orgitdownFooter { + width:100%; +} +.orgitdownResizeHandle { + overflow:hidden; + width:22px; height:5px; + margin-left:auto; + margin-right:auto; + background-image:url(images/handle.png); + cursor:n-resize; +} +/***************************************************************************************/ +/* first row of buttons */ +.orgitdownHeader ul li { + list-style:none; + float:left; + position:relative; +} +.orgitdownHeader ul li:hover > ul{ + display:block; +} +.orgitdownHeader ul .orgitdownDropMenu { + background:transparent url(images/menu.png) no-repeat 115% 50%; + margin-right:5px; +} +.orgitdownHeader ul .orgitdownDropMenu li { + margin-right:0px; +} +/* next rows of buttons */ +.orgitdownHeader ul ul { + display:none; + position:absolute; + top:18px; left:0px; + background:#FFF; + border:1px solid #000; +} +.orgitdownHeader ul ul li { + float:none; + border-bottom:1px solid #000; +} +.orgitdownHeader ul ul .orgitdownDropMenu { + background:#FFF url(images/submenu.png) no-repeat 100% 50%; +} +.orgitdownHeader ul .orgitdownSeparator { + margin:0 10px; + width:1px; + height:16px; + overflow:hidden; + background-color:#CCC; +} +.orgitdownHeader ul ul .orgitdownSeparator { + width:auto; height:1px; + margin:0px; +} +/* next rows of buttons */ +.orgitdownHeader ul ul ul { + position:absolute; + top:-1px; left:150px; +} +.orgitdownHeader ul ul ul li { + float:none; +} +.orgitdownHeader ul a { + display:block; + width:16px; height:16px; + text-indent:-10000px; + background-repeat:no-repeat; + padding:3px; + margin:0px; +} +.orgitdownHeader ul ul a { + display:block; + padding-left:0px; + text-indent:0; + width:120px; + padding:5px 5px 5px 25px; + background-position:2px 50%; +} +.orgitdownHeader ul ul a:hover { + color:#FFF; + background-color:#000; +} diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/templates/preview.css b/objectapp/static/objectapp/js/orgitdown/orgitdown/templates/preview.css new file mode 100644 index 00000000..550c6b85 --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/templates/preview.css @@ -0,0 +1,5 @@ +/* preview style examples */
+body {
+ background-color:#EFEFEF;
+ font:70% Verdana, Arial, Helvetica, sans-serif;
+}
\ No newline at end of file diff --git a/objectapp/static/objectapp/js/orgitdown/orgitdown/templates/preview.html b/objectapp/static/objectapp/js/orgitdown/orgitdown/templates/preview.html new file mode 100644 index 00000000..d03a051f --- /dev/null +++ b/objectapp/static/objectapp/js/orgitdown/orgitdown/templates/preview.html @@ -0,0 +1,11 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>orgitdown! preview template</title>
+<link rel="stylesheet" type="text/css" href="~/templates/preview.css" />
+</head>
+<body>
+<!-- content -->
+</body>
+</html>
|