From a54367cd91fc9a232c86a328b3ea5b48a3376112 Mon Sep 17 00:00:00 2001 From: court Date: Wed, 18 Aug 2010 17:09:47 +0000 Subject: [PATCH] updates for the wmd git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@558 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/skins/default/media/js/wmd/showdown.js | 5 +- forum/skins/default/media/js/wmd/wmd.css | 31 +- forum/skins/default/media/js/wmd/wmd.js | 327 ++++++++----------- 3 files changed, 150 insertions(+), 213 deletions(-) diff --git a/forum/skins/default/media/js/wmd/showdown.js b/forum/skins/default/media/js/wmd/showdown.js index 3f4b994..0efa6c5 100644 --- a/forum/skins/default/media/js/wmd/showdown.js +++ b/forum/skins/default/media/js/wmd/showdown.js @@ -6,9 +6,6 @@ // Original Markdown Copyright (c) 2004-2005 John Gruber // // -// Redistributable under a BSD-style open source license. -// See license.txt for more information. -// // The full source distribution is at: // // A A L @@ -184,7 +181,7 @@ var _StripLinkDefinitions = function(text) { /gm, function(){...}); */ - var text = text.replace(/^[ ]{0,3}\[(.+)\]:[ \t]*\n?[ \t]*?[ \t]*\n?[ \t]*(?:(\n*)["(](.+?)[")][ \t]*)?(?:\n+|\Z)/gm, + var text = text.replace(/^[ ]{0,3}\[(.+)\]:[ \t]*\n?[ \t]*?[ \t]*\n?[ \t]*(?:(\n*)["(](.+?)[")][ \t]*)?(?:\n+)/gm, function (wholeMatch,m1,m2,m3,m4) { m1 = m1.toLowerCase(); g_urls[m1] = _EncodeAmpsAndAngles(m2); // Link IDs are case-insensitive diff --git a/forum/skins/default/media/js/wmd/wmd.css b/forum/skins/default/media/js/wmd/wmd.css index 80c226c..057eefd 100644 --- a/forum/skins/default/media/js/wmd/wmd.css +++ b/forum/skins/default/media/js/wmd/wmd.css @@ -1,23 +1,31 @@ -/*body +body { background-color: White } -*/ + .wmd-panel { + width: 50%; + min-width: 500px; +} + +#wmd-editor +{ + background-color: Aquamarine; } #wmd-button-bar { - background-color: White; + width: 100%; + background-color: #ffffff; } #wmd-input { height: 500px; + width: 100%; background-color: Gainsboro; border: 1px solid DarkGray; - margin-top: -20px; } #wmd-preview @@ -39,6 +47,7 @@ margin-top: 10px; padding: 0px; height: 20px; + background-color:#ffffff; } .wmd-spacer @@ -48,8 +57,10 @@ margin-left: 14px; position: absolute; - background-color: Silver; - display: inline-block; + background-color:#aaaaaa; + /*border-color:#aaaaaa; + border-style:solid;*/ + display: inline-block; list-style: none; } @@ -59,7 +70,7 @@ height: 20px; margin-left: 5px; margin-right: 5px; - + background-color:#ffffff; position: absolute; background-image: url(images/wmd-buttons.png); background-repeat: no-repeat; @@ -74,7 +85,7 @@ height: 20px; margin-left: 5px; margin-right: 5px; - + position: absolute; display: inline-block; } @@ -111,7 +122,7 @@ } .wmd-prompt-dialog > div { - font-size: 1em; + font-size: 0.8em; font-family: arial, helvetica, sans-serif; } @@ -124,6 +135,6 @@ .wmd-prompt-dialog > form > input[type="button"]{ border: 1px solid #888888; font-family: trebuchet MS, helvetica, sans-serif; - font-size: 1em; + font-size: 0.8em; font-weight: bold; } diff --git a/forum/skins/default/media/js/wmd/wmd.js b/forum/skins/default/media/js/wmd/wmd.js index 957603e..5b85976 100644 --- a/forum/skins/default/media/js/wmd/wmd.js +++ b/forum/skins/default/media/js/wmd/wmd.js @@ -1,49 +1,3 @@ -/* -Ajax upload -*/jQuery.extend({createUploadIframe:function(d,b){var a="jUploadFrame"+d;if(window.ActiveXObject){var c=document.createElement('