-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Still no support for <kbd> tags #17879
Comments
#14429 fixed both cases to reproduce. Could you separately report anything remaining? |
Summary
Details below. Stripping when pastingPasting following piece of text (copied from Code Editor):
into Visual Editor produces this in Visual Editor
and this in Code Editor:
or this into Code Editor:
Converting classic text into blocksThe only difference that I see is that when you convert some classic editor text into blocks then Support for adding tags into Visual EditorBut that is by far not enough. The intention of this ticket (more like feature request than a bug report) -- support for tags -- was to have any kind of support for From this perspective -- as far as I see -- nothing was done and nothing changed. |
For that, I get:
Could you share what is logged in the console for all cases? |
Adding console dumps in step-by-step process of copying and pasting piece of text with Step 1. Page / Visual Editor load on some draft article:
Step 2. Selecting
Step 3. Pasting above copied text into some other place (new paragraph at the end of text) in Visual Editor. Getting
|
Hope to have a better handling of kbd. An optional button of the editor would be great. |
Lack of |
Any news on this? It makes it really hard to work with documentation in Gutenberg, which then pushes us to a page builder, which is sort of nuts to do just for this single, seemingly tiny, thing. I know what seems tiny isn't always, but is there an appetite from the team for addressing this in the first place? |
Well we sure don't want to start talking about how Jupyter and Colab are handling code, right? |
Why hasn't this been added yet? |
@TomLewis, what hasn't been added? I definitely see this is available: And it was there since at least 2-3 past versions. The only problem is that this is not supported by any keyboard shortcut, which makes this feature very unhandy. But, I believe that this is area of some other ticket. |
Oh what, why can't I see that! Let me try disabling and re-enabeling. Is there a way to reset or re initialize the plugin? |
Make sure that you have the newest version of the plugin. Make sure that you have Gutenberg as a separate plugin: Because the one that comes with Wordpress core installation is updated way too slower and on a very rare basis, so it can still be missing this. Disable and re-enable Gutenberg plugin. If still no effect, uninstall it and install again. BTW: Make sure that you enable auto-update feature for plugins. To have always the newest version of each of it. I was very reluctant to have it enabled, but it turned out very handy. As you can see in my screenshot, I am currently on Gutenberg 10.3.2. If you're on the same version and still don't see corresponding menu item then there could be some other plugin blocking or overriding something in Gutenberg plugin or there could be something wrong with your Wordpress in general. I am on Gutenberg 10.3.2 currently, but -- as I told you above -- I am using this feature for certain months, so this isn't something new. The corresponding #26801 has been merged by @ellatrix on 7 Nov 2020 and I am pretty sure that we have this feature in Gutenberg plugin since something around late November / early December or something like that. |
I haven't tried this yet, but oh my god @pansamolot thank you for this tip! Changing inline codes manually to kbd tags when the writing process was completed was an awful workflow. |
It is a development version. It gets updated very often (I had auto-updates even once per day for some time), but it can handle some nasty things (for example we had a bad-looking Times New Roman font in editor for about 2 weeks). The official, core version gets updated on very rare basis (once per month or even less), but doesn't get that many bugs. This one is more like nightly build etc. Many (really many... way too many) people doesn't understand that (or don't want to understand that) and thinks this is a production-level plugin. Since it's not, since it fails for so many times, it gets so bad credit.
It's up to you, depending on what you need or want. The core thing behind Gudneberg is that it is based on block. There are hundreds, if not thousands of blocks types available. Of which just a tiny subset is carried on with Gutenberg plugin itself. You need to install dozens of other plugins in order to get access to these block types. I'd consider this as a major advantage of Gutenberg and the most important way of "improving" it. |
I can't help but notice that the fact it's a beta is mentioned towards the end of the snippet. It seems like that should really be up front, and bolded if possible. |
I just copy pasted my old HTML into a very vanilla, stock, WordPress, with no plugins, via the Gutenberg interface and it has, in fact, detected the A convoluted workflow; I compose in MD, convert to HTML, and then paste it into WordPress, and review each page manually. Static HTML is always an option. I'm only employing (deploying) WordPress for better SEO. |
Describe the bug
Either I am missing something or current stable version of Gutenberg still lacks a support for
<kbd>
tags totally:<kbd>
tags seems to be turned into<code>
tags,<kbd>
tags are stripped of and text is pasted as not formatted.Example 1: To reproduce
Steps to reproduce the behavior:
<kbd>
tag.<kbd>
tags are converted into<code>
tags.Example 1: Expected behavior
Gutenberg should support
<kbd>
tags and should not convert them into<code>
tags by no means. In millions of Wordpress themes out there<kbd>
and<code>
tags have a different CSS formatting.Example 1: Screenshots
Example 2: To reproduce
Steps to reproduce the behavior:
<kbd>
tag.<kbd>
tags are converted into unformatted text.Example 2: Expected behavior
When copy-pasting text containing
<kbd>
tags all of them should be pasted without any change into not formatted text.Example 3: Do anything to insert for example
<kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>l</kbd>
without switching to code editor.Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: