{"id":24459,"date":"2020-10-03T05:15:01","date_gmt":"2020-10-03T04:15:01","guid":{"rendered":"https:\/\/jurnsearch.wordpress.com\/?p=24459"},"modified":"2020-10-03T05:15:01","modified_gmt":"2020-10-03T04:15:01","slug":"a-robust-fix-for-reaching-the-classic-editor-for-free-wordpress-com-blogs","status":"publish","type":"post","link":"https:\/\/jurn.link\/jurnsearch\/index.php\/2020\/10\/03\/a-robust-fix-for-reaching-the-classic-editor-for-free-wordpress-com-blogs\/","title":{"rendered":"A robust fix for reaching the Classic Editor, for free WordPress.com blogs"},"content":{"rendered":"<p>I&#8217;m pleased to see that the vital <a href=\"https:\/\/greasyfork.org\/en\/scripts\/8581-wordpress-com-edit-post-redirects\">WordPress.com edit post redirects<\/a> UserScript has updated, and it handles the current changed arrangements at the WordPress.com free blogs. It&#8217;s working fine for all functions (start new post, edit post from side-link on existing post, edit post from wp-admin list, etc). It briskly takes you and your post to the Classic Editor, rather than to the awful Block editor.<\/p>\n<p>I had coded a Lua script for the <a href=\"https:\/\/jurn.link\/jurnsearch\/2019\/08\/24\/trigger-a-keyboard-shortcut-with-a-mouse-gesture\/\">StrokesPlus mouse-gestures freeware<\/a> to provide a workaround for the current problem, which was working. But it&#8217;s now no longer needed.  Here it is anyway, for what it&#8217;s worth&#8230;<\/p>\n<hr>\n<p><code><br \/>\n-- A LUA SCRIPT for a STROKESPLUS mouse-gesture.<br \/>\n-- TITLE: Auto-load the Classic Editor at WordPress.com<br \/>\n-- DATE: October 2020.<br \/>\n--<br \/>\n-- Your Web browser is at ..\/wp-admin\/edit.php and you do the mouse gesture.<br \/>\n-- First the script pauses, to ensure wp-admin has time to fully load itself<br \/>\nacDelay(1500)<br \/>\n-- select and copy the current browser URL<br \/>\nacActivateWindow(nil, gex, gey)<br \/>\nacSendKeys(\"^l{DELAY 100}^c\")<br \/>\nurl=acGetClipboardText()<br \/>\n-- process the browser URL, trimming it back<br \/>\nnew_url=string.gsub(url,\"(.+)\/.+\/?\",\"%1\")<br \/>\nacSetClipboardText(new_url)<br \/>\n-- load the new trimmed URL in the browser<br \/>\nacSendKeys(\"^v{DELAY 100}{ENTER}\")<br \/>\n-- copy the current browser URL again<br \/>\nurl2=acGetClipboardText()<br \/>\n-- append the posting URL and thus effectively go to New Post<br \/>\nnew_url2=string.gsub(url2,\".+\/?\",\"%1\/post-new.php\")<br \/>\nacSetClipboardText(new_url2)<br \/>\nacSendKeys(\"^v{DELAY 100}{ENTER}\")<br \/>\n-- delay 7 seconds to allow the sluggish Block editor to load<br \/>\nacDelay(7500)<br \/>\n-- type the word draft in the post title, and Ctrl + S to save as a Draft post<br \/>\nacSendKeys(\"draft\")<br \/>\nacSendKeys(\"^s\")<br \/>\n-- pause 3 seconds for WordPress to switch to the new numbered URL<br \/>\nacDelay(3000)<br \/>\nacActivateWindow(nil, gex, gey)<br \/>\n-- copy this new URL to the clipboard<br \/>\nacSendKeys(\"^l{DELAY 100}^c\")<br \/>\nurl3=acGetClipboardText()<br \/>\n-- append the vital &amp;classic-editor slug to the end of the URL<br \/>\nnew_url3=string.gsub(url3,\".+\/?\",\"%1&amp;classic-editor\")<br \/>\nacSetClipboardText(new_url3)<br \/>\n-- take the Draft post into the Classic Editor and finish.<br \/>\nacSendKeys(\"^v{DELAY 500}{ENTER}\")<br \/>\n<\/code><\/p>\n<hr>\n<p>And to handle the additional &#8220;Edit&#8221; side-link on posts, you&#8217;d use a second Lua script with its core being&#8230;<\/p>\n<p><code>-- look at the current URL, keep only the post number<br \/>\nnew_url=string.gsub(url,\"[^0-9]\",\"\")<\/code><\/p>\n<p>&#8230; then prepend and append the required URL structure around the post number, to get a working URL back again, then load that URL.<\/p>\n<hr>\n<p>Will either of these solutions last beyond 2021? Perhaps not, as I suspect the Classic Editor will then be killed off totally as previously announced for that date, rather that effectively hidden from the mass of users. As such it&#8217;s probably best to just start learning the free <a href=\"https:\/\/openlivewriter.com\/\">Open Live Writer<\/a> and try to use free blogs in WordPress.com that way.  That assumes, however, that in 2021 WordPress.com doesn&#8217;t also block offline-editing using such blogging software.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m pleased to see that the vital WordPress.com edit post redirects UserScript has updated, and it handles the current changed &hellip;<\/p>\n<p><a href=\"https:\/\/jurn.link\/jurnsearch\/index.php\/2020\/10\/03\/a-robust-fix-for-reaching-the-classic-editor-for-free-wordpress-com-blogs\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,16],"tags":[],"class_list":["post-24459","post","type-post","status-publish","format-standard","hentry","category-jurn-tips-and-tricks","category-spotted-in-the-news"],"_links":{"self":[{"href":"https:\/\/jurn.link\/jurnsearch\/index.php\/wp-json\/wp\/v2\/posts\/24459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jurn.link\/jurnsearch\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jurn.link\/jurnsearch\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jurn.link\/jurnsearch\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jurn.link\/jurnsearch\/index.php\/wp-json\/wp\/v2\/comments?post=24459"}],"version-history":[{"count":0,"href":"https:\/\/jurn.link\/jurnsearch\/index.php\/wp-json\/wp\/v2\/posts\/24459\/revisions"}],"wp:attachment":[{"href":"https:\/\/jurn.link\/jurnsearch\/index.php\/wp-json\/wp\/v2\/media?parent=24459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jurn.link\/jurnsearch\/index.php\/wp-json\/wp\/v2\/categories?post=24459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jurn.link\/jurnsearch\/index.php\/wp-json\/wp\/v2\/tags?post=24459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}