None of the keyboard shortcuts work in the code editor
-
As the title says, the keyboard shortcuts are broken in the code editor. This includes at least Ctrl-b (opens the bookmarks instead) and Ctrl-i (opens the page info), Ctrl-k (focuses the URL bar with “?” prefilled) and Ctrl-u (views source). None of the following do anything at all as far as I can tell: Ctrl-Shift-Alt-f, Ctrl-Shift-Alt-m, Shift-Alt-h.
I’m using latest Firefox (81.0) on Ubuntu Linux.
The blog I need help with is: (visible only to logged in users)
-
Hi there,
This is expected. Keyboard shortcuts for the block editor only applies to visual editing mode.
The block editor’s code editor view is not intended for writing your posts from scratch, but rather to debug and to some extent modify code for the blocks you add. As such it also doesn’t include any toolbar with formatting buttons, like the code view in the classic editor did, either.
You can see https://github.com/WordPress/gutenberg/issues/9593 in this regard.
If you prefer to write your posts in HTML, a better option is to use the HTML block in the visual editor instead.
-
Thank you for the quick and thorough response! Stack Overflow has had this for about a decade, so that’s a shame.
I have yet to find any WYSIWYG editor which produces the kind of diffs which I’d be comfortable with in a version control system, including at least LibreOffice (.fodt), MS Word (.docx), Inkscape (their minimal .svg gets close though), and WordPress. I’m also comfortable writing plain HTML, so if WordPress is going to try to force me to use a WYSIWYG editor I’m going to either use a markup editor with live preview or look for another service.
I know I’m not alone in this sentiment, but of course it could be that only a tiny fraction of your users use the code editor. Do you have numbers on that, by any chance?
-
so if WordPress is going to try to force me to use a WYSIWYG editor I’m going to either use a markup editor with live preview or look for another service.
It is still possible to use to the classic editor when writing/editing posts/pages in your site’s Dashboard, but to do so you will need to access the “wp-admin” dashboard on your site: https://wordpress.com/support/dashboard/
You can see what I see at this link: https://d.pr/i/EPSW37
Please note that the classic editor will be fully retired at some point, so while that option exists at the moment I’m not able to guarantee it will always be there. Hope this helps!
- The topic ‘None of the keyboard shortcuts work in the code editor’ is closed to new replies.