{"id":6222,"date":"2004-10-06T18:24:44","date_gmt":"2004-10-07T01:24:44","guid":{"rendered":"http:\/\/hill-kleerup.org\/blog\/wp\/2004\/10\/06\/the-return-of-the-revenge-of-the-son-of-the-mt-rich-text-formatting-buttons.html"},"modified":"2004-10-06T18:24:44","modified_gmt":"2004-10-07T01:24:44","slug":"the_return_of_t","status":"publish","type":"post","link":"https:\/\/hill-kleerup.org\/blog\/2004\/10\/06\/the_return_of_t.html","title":{"rendered":"The Return of the Revenge of the Son of the MT Rich Text Formatting Buttons!"},"content":{"rendered":"<p>Okay, so not having a link button or italics buttons or stuff like that in the comments was driving me nuts.  Time to re-insert the old code.<\/p>\n<p>But &#8230; wait.  Movable Type&#8217;s rich text formatting buttons under 3.x seem to work just fine in the normal edit window in Firefox (huzzah!), so no fancy-schmancy rewriting of the code is needed for cross-platform editing &#8212; thus, easy beans, right?<\/p>\n<p>Well &#8230; it would help if I understood Java better, but, yeah, ultimately it&#8217;s pretty straightforward to adopt the internal MT formatting buttons to the comments in your blog &#8230;<\/p>\n<p><strong>Step 1<\/strong>: Extract the appropriate display code from the <em>edit_entry.tmpl<\/em> file and put it into your template (e.g., the individual archives) comment area around the comment text box, as in <a href=\"https:\/\/www.hill-kleerup.org\/blog\/format-buttons.txt\">this code<\/a>.<\/p>\n<p>Notes on that code block::<\/p>\n<ul>\n<li>I&#8217;ve left out some formatting niceties, which would be driven by your own blog design.\n<li>The &#8220;\/blog\/mt\/&#8221; statements should be replaced with the path to your MT directory (above the <em>images <\/em>directory).\n<li>The &#8220;comments_form&#8221; text should be replaced with whatever the form name is (e.g., <em>&lt;form name=&#8221;comments_form&#8221;&gt;<\/em>).  This was the part that threw me the longest.<\/ul>\n<p>Those functions aren&#8217;t yet defined, of course, at least not in the template.  But they <em>are <\/em>part of the base MT Javascript library (<em>mt.js<\/em>).  And since the code is fairly universal, we can just refer to that file, rather than having to tweak things.  So &#8230;<\/p>\n<p><strong>Step 2<\/strong>:  Inside the <em>&lt;head&gt;&lt;\/head&gt;<\/em> area at the top of the template, include the following statement:<\/p>\n<p class=\"block\">&lt;script type=&quot;text\/javascript&quot; src=&#038;quot\/blog\/mt\/mt.js&#038;quot&gt;&lt;\/script&gt;<\/p>\n<p>Again, substituting the path to your MT directory for &#8220;\/blog\/mt\/&#8221;<\/p>\n<p>And that, as they say, is that.<\/p>\n<p>I probably won&#8217;t add any buttons beyond the basic four, but it&#8217;s straightforward enough to do so.<\/p>\n<p>As far as I can tell, this should work not just in IE and Mozilla\/Gecko-based browsers, but also in Safari.  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Okay, so not having a link button or italics buttons or stuff like that in the comments was driving me nuts. Time to re-insert the old code. But &#8230; wait&#8230;.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_seopress_robots_follow":"","_seopress_robots_imageindex":"","_seopress_robots_snippet":"","_seopress_robots_primary_cat":"","_seopress_robots_breadcrumbs":"","_seopress_robots_freeze_modified_date":"","_seopress_robots_custom_modified_date":"","_seopress_robots_canonical":"","_seopress_social_fb_title":"","_seopress_social_fb_desc":"","_seopress_social_fb_img":"","_seopress_social_fb_img_attachment_id":0,"_seopress_social_fb_img_width":0,"_seopress_social_fb_img_height":0,"_seopress_social_twitter_title":"","_seopress_social_twitter_desc":"","_seopress_social_twitter_img":"","_seopress_social_twitter_img_attachment_id":0,"_seopress_social_twitter_img_width":0,"_seopress_social_twitter_img_height":0,"_seopress_redirections_value":"","_seopress_redirections_enabled":"","_seopress_redirections_enabled_regex":"","_seopress_redirections_logged_status":"","_seopress_redirections_param":"","_seopress_redirections_type":0,"_seopress_analysis_target_kw":"","_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[],"class_list":["post-6222","post","type-post","status-publish","format-standard","hentry","category-blogging"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":5847,"url":"https:\/\/hill-kleerup.org\/blog\/2004\/07\/10\/the_return_of_f.html","url_meta":{"origin":6222,"position":0},"title":"The Return of Firefox, buttons, MT, rich text editing, and me","author":"***Dave","date":"Sat 10-Jul-04 5:01pm","format":false,"excerpt":"Huzzah and hey-nonny-nonny! Based on Rich's suggestions, the formatting buttons in the comments are working just jim-spandy fine. Huzzah! I've tested it in both Firefox and IE ... which probably...","rel":"","context":"In &quot;Blogging &amp; Internet&quot;","block_context":{"text":"Blogging &amp; Internet","link":"https:\/\/hill-kleerup.org\/blog\/category\/blogging"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5853,"url":"https:\/\/hill-kleerup.org\/blog\/2004\/07\/09\/firefox_buttons.html","url_meta":{"origin":6222,"position":1},"title":"Firefox, buttons, MT, rich text editing, and me","author":"***Dave","date":"Fri 9-Jul-04 8:46pm","format":false,"excerpt":"Okay, the code all works (including a small button and an Amazon image button) in the bm_entry (Bookmarklet screen) and edit_entry (MT Edit screen). Woo-hoo, and hoody-hoo. Problem is, I...","rel":"","context":"In &quot;Blogging &amp; Internet&quot;","block_context":{"text":"Blogging &amp; Internet","link":"https:\/\/hill-kleerup.org\/blog\/category\/blogging"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6022,"url":"https:\/\/hill-kleerup.org\/blog\/2004\/06\/04\/multi_lingual.html","url_meta":{"origin":6222,"position":2},"title":"Multi-lingual","author":"***Dave","date":"Fri 4-Jun-04 1:58pm","format":false,"excerpt":"I keep bouncing back and forth between doing blog entries (in various editors with buttons to do some formatting and the rest being handled through HTML coding) and wiki entries...","rel":"","context":"In &quot;Blogging &amp; Internet&quot;","block_context":{"text":"Blogging &amp; Internet","link":"https:\/\/hill-kleerup.org\/blog\/category\/blogging"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5856,"url":"https:\/\/hill-kleerup.org\/blog\/2004\/07\/09\/button_button.html","url_meta":{"origin":6222,"position":3},"title":"Button, button &#8230;","author":"***Dave","date":"Fri 9-Jul-04 2:54pm","format":false,"excerpt":"Okay, I've implemented the QandO code for the buttons, as mentioned in comments below. I'm going to add the following comments over there, but I'm testing it out here first...","rel":"","context":"In &quot;Blogging &amp; Internet&quot;","block_context":{"text":"Blogging &amp; Internet","link":"https:\/\/hill-kleerup.org\/blog\/category\/blogging"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":18437,"url":"https:\/\/hill-kleerup.org\/blog\/2010\/09\/07\/formatting-quicktags-for-comments.html","url_meta":{"origin":6222,"position":4},"title":"Formatting quicktags for comments","author":"***Dave","date":"Tue 7-Sep-10 2:10pm","format":false,"excerpt":"I noticed Les had some quicktags for formatting comments in his blog, so, inquiring, I got a pointer to the Comment Form Quicktags plugin.\u00a0 As this is a feature I had in the old MT version of my blog, and have had occasional requests for it back (waves at Avo),\u2026","rel":"","context":"In &quot;Blogging - Technical&quot;","block_context":{"text":"Blogging - Technical","link":"https:\/\/hill-kleerup.org\/blog\/category\/blogging\/blogging-technical"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/hill-kleerup.org\/blog\/wp\/wp-content\/uploads\/2009\/07\/computer-univac1956.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":10146,"url":"https:\/\/hill-kleerup.org\/blog\/2006\/08\/24\/403_errors_and.html","url_meta":{"origin":6222,"position":5},"title":"403 errors and anti-spam measures","author":"***Dave","date":"Thu 24-Aug-06 11:45am","format":false,"excerpt":"Posting here for my own reference ... Avo pinged me last night that he was unable to post a comment to my blog, getting a 403 error (Forbidden). Hrm. Weird....","rel":"","context":"In &quot;Blogging &amp; Internet&quot;","block_context":{"text":"Blogging &amp; Internet","link":"https:\/\/hill-kleerup.org\/blog\/category\/blogging"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/posts\/6222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/comments?post=6222"}],"version-history":[{"count":0,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/posts\/6222\/revisions"}],"wp:attachment":[{"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/media?parent=6222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/categories?post=6222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/tags?post=6222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}