{"id":268,"date":"2005-08-18T12:48:48","date_gmt":"2005-08-18T19:48:48","guid":{"rendered":"http:\/\/lee.org\/blog\/?p=268"},"modified":"2005-09-24T14:56:14","modified_gmt":"2005-09-24T21:56:14","slug":"installed-js-quick-tags-for-comments","status":"publish","type":"post","link":"https:\/\/www.lee.org\/blog\/2005\/08\/18\/installed-js-quick-tags-for-comments\/","title":{"rendered":"Installed JS Quick Tags for Comments"},"content":{"rendered":"<p>[I installed this a couple weeks ago but forgot to blog it.]<br \/>\nHere&#8217;s a little something to make writing pretty comments a little easier.<br \/>\nI took it from <a href=\"http:\/\/www.scriptygoddess.com\/archives\/2004\/06\/10\/quick-tags-for-comments\/\">Scriptygoddess<\/a>, who took it from <a href=\"http:\/\/www.alexking.org\/blog\/2004\/06\/03\/js-quicktags-under-lgpl\/\">Alex King<\/a>.<\/p>\n<p>The tags I use in my lineup are:<br \/>\nbold, italics, blockquote, link close tags<\/p>\n<p>You should see these buttons just above the Comments field when you write your comments to me. They make it a little easier for you to add HTML tags to your comments.<\/p>\n<p>From Jennifer&#8217;s site (this was written for WP 1.2. The instructions are a bit different for newer versions. I&#8217;ve installed it for WP 1.5 just fine)<\/p>\n<blockquote><p>To use the &#8220;mini&#8221; version I made:<\/p>\n<p>1) Download <a href=\"http:\/\/www.scriptygoddess.com\/downloads\/js_quicktags-mini.zip\">the js<\/a> file and upload it to the root of your domain.<\/p>\n<p>2) Open up your wp-comments.php page [in WP 1.5, comments.php in your theme] &#8230; Look for the beginning of the comments form &#8211; (search for &#8220;&lt;form&#8221; in the file) and put this just above it:<\/p>\n<p><code>&lt;script src=\"\/js_quicktags-mini.js\" type=\"text\/javascript\"&gt;&lt;\/script>&lt;\/form&gt;<\/code><\/p>\n<p>Look for the text area field for comments which looks like this<\/p>\n<p><code>&lt;textarea name=\"comment\" id=\"comment\" cols=\"40\" rows=\"6\" tabindex=\"4\"&gt;&lt;\/textarea&gt;<\/code><\/p>\n<p> and add this directly above it:<br \/>\n<code>&lt;script type=\"text\/javascript\"&gt;edToolbar();&lt;\/script&gt;<\/code><\/p>\n<p>And add this BELOW the textarea field:<br \/>\n<code>&lt;script type=\"text\/javascript\"&gt;var edCanvas = document.getElementById('comment');&lt;\/script&gt;<\/code><\/p>\n<p>This is the method I&#8217;m using on this site &#8211; although I added the &#8220;h3&#8221; tag just for the one I use, since that&#8217;s what I use to stylize code on this site. You can easily add more&#8230; or start from scratch using Alex&#8217;s.<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>[I installed this a couple weeks ago but forgot to blog it.] Here&#8217;s a little something to make writing pretty comments a little easier. I took it from Scriptygoddess, who took it from Alex King. The tags I use in my lineup are: bold, italics, blockquote, link close tags You should see these buttons just [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-268","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"_links":{"self":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/posts\/268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/comments?post=268"}],"version-history":[{"count":0,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/posts\/268\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/media?parent=268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/categories?post=268"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/tags?post=268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}