# New editor in WordPress and how to circumvent it

EDIT: No longer an issue — there is a button on the right-hand side of the new editor that allows you to switch to the old version. However, I’ll leave this post here, as the trickery might come in handy in another situation.

I have problems like everyone else with the new editor, except that my main issue is editing existing posts.

1. Why I don’t want to use the new editor, in order of importance:

– it doesn’t take up all of the screen estate, only a narrow column in the middle of one of the two of 24″ monitors I use to work with text.
– it meddles with my HTML code. I have many “tl;dr” (very long) posts (not here, on another blog) which I like to format with empty lines in order to facilitate editing.
– it is buggy (read: non-functional) in my browser of choice (experimental Opera running on Ubuntu). Now, I don’t ask WordPress to adapt to my needs; but if everything else works fine with that browser, why would I want to switch to something I don’t like just because one beta feature on one site doesn’t work?

The first two problems make the editor unusable; the third can be circumvented (I could work with WordPress and WordPress only in Firefox, for example).

2. How to circumvent the new editor

Of course, clicking on the little pencil icon on your blog post takes you to the new editor. To use the old editor, the only way is to go to “Dashboard” -> “Posts”, search for the post you would like to edit, and click on “Edit”.

3. A better solution

Since the link to the new editor looks like this:
https://wordpress.com/post/BlogIDNumber/1234

I think that a regular expression rewriting your links (for example, a simple bookmarklet) should do the trick. Essentially, you would catch the regular expression “https://wordpress.com/post/BlogIDNumber/(%5B0-9%5D*)&#8221; and replace the link by “https://yourblogname.wordpress.com/wp-admin/post.php?post=$1&action=edit&#8221;. The code below is untested and you should use it on your own responsibility There is actually quite an easy piece of javascript code that you can add as a bookmark. You click the bookmark, and all your new-editor links convert in your old-editor links. You may start with the following code: javascript:(function(){ var m = /wordpress.com\/post\/YourBlogID\/([0-9]*)/ ; var r = 'yourblogname.wordpress.com/wp-admin/post.php?post=$1&action=edit';
for(var i = 0, l; l = links[i]; i++) {
if (l.href)
l.href = l.href.replace(m,r);
}
})();


Replace “yourblogname” by your blog name (e.g. “logfc” in case of my blog); replace “YourBlogID” by your blog ID. Add a bookmark that contains, as reference, the above code. Clicking on the bookmark should replace all “new style links” by “old style links”.

Here is an example screenshot from Google Chrome. You see that in the field where you would normally put your URL (http…), you enter the above code (except that you replace “YourBlogID” by the actual ID and “yourblogname” by the actual name):

The downside is that you will need a bookmark for each blog that you are writing.

## 10 thoughts on “New editor in WordPress and how to circumvent it”

1. Habakuk says:

You are my hero of the day!!! That works indeed!

My Safari insists on replacing all blanks in that code with “%20” but it still works. After loading my blog in a Safari window I just have to click/tap that bookmark first (there is no visible response) and if I click/tap on ANY “Edit” link then (even with “Open in new window/tab”) it will open the good old editor. This is MUCH less hassle than the provided (by WordPress.com’s staff) workaround (via dashboard, click here, click there, scroll through long lists, switch pages, type posting titles…).

However: If you (re)load your blog roll from new, or if you load a single posting, you’ll have to click/tap on the bookmark once more. Just watch Safari’s status line: There you find the “correct” (old) URL to the only working editor.

THANK YOU VERY MUCH! You almost saved my blog! (Editing and keeping postings updated is an important feature of my blog with time-limited iOS app sales.) The community is clearly better than the official WordPress’ staff.

• Yes, the little bit of javascript is not called automatically when the page is loaded. I think there are plugins that let you do exactly that. Also, if you paid for your wordpress premium account, I think it should be possible to add the javascript somewhere in your template. Since I don’t have a premium account, I can’t test it.

• As I mentioned in the support forum as well, we can’t add JavaScript to our blogs and we don’t have access to the base files, regardless of upgrade. Only the self-hosted WordPress.org people can do that. But this works brilliantly as a bookmark (once I figured out how to add it). Thanks for providing it.

• Well, I didn’t know that — I used to use a wordpress.org installation, so I assumed premium gives similar capabilities.

2. growescience says:

Forgive my ignorance, but I’m not sure what you mean by ‘adding a bookmark’. Is this a bookmark in the browser (that is, do you need to copy the Javascript into an HTML file and bookmark that in the browser?) or is there some way of adding a bookmark inside wordpress.com itself?
Thanks for any help…

• Add a bookmark (e.g. to your bookmark toolbar). Usually, a browser will ask for two things: 1) how to call the bookmark and 2) the bookmark URL. Choose 1) however you like. The 2) should be the piece of code above, including “javascript:”. I have added a screenshot to the post above.

3. growescience says:

Brilliant! Never knew you could do that. Thanks!

• This is called a “bookmarklet”, google for useful bookmarklets for your browser. You’re welcome :-)))

4. Thank you very much!
That leaves just one more question: doesn’t the wp staff have enough proper work to do, so that they have to mess around with the editor and things?
Irja.

5. beim Honigmann zu lesen says:

Auf meine Anfrage bekam iCH nicht mal eine Antwort, warum das umgeändert worden ist.
Es ist unlogisch, man kann nur über einen Umweg etwas einstellen und “einkopieren” geht auch nicht mehr, da man erst “paste and text” oder Formatierung entfernen muß und für dieses “hick-hack” habe iCH auch noch € 80,- / \$ 99,- bezahlt.

Es ist SCHLECHTER geworden !

Der Honigmann
.