WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.46k stars 4.18k forks source link

HTML block: expanding option #18570

Open karmatosed opened 4 years ago

karmatosed commented 4 years ago

I am unsure if this exists still but using Twenty Twenty/Nineteen, there is no option to expand this block. Someone on the support forums reports they used to be able to do this and it was useful for them.

I use the HTML-block to write entire pages in HTML code, on many wordpress websites. The html-block in Gutenberg allowed for enlarging it by dragging the lower righthand corner. With the latest update of WP this is no longer possible. https://wordpress.org/support/topic/html-block-gutenberg-no-longer-extendable/

I see both the code editor and HTML block are unable to expand.

image

image

Also, it might be good to along with this add in the ability to set to full width for this, for example, if someone is using HTML block for layout.

raoulunger commented 4 years ago

Thanks for picking this up ( I was the one mentioning it in the forum).

To clarify: this is not specifically related to the Twenty Twenty/Nineteen theme, but to any theme the Gutenberg builder is used in (I'm using the Bootstrap boilerplate).

Another thing I wasn't clear about: the expanding option that went missing was only for the vertical plane, horizontal expanding was not possible withou a plugin. The possibility of making the block full width is a very good suggestion! I'm presently using the said plug-in, but I think it would be good for WP to provide this out of the box (plugins should not have to be used for such basic functionality).

Many developers code within Wordpress, and the narrow blocks make code much more difficult to read, especially in case of longer lines, such as long img tags that wrap to the next line. Wider screens (such as the iMac I have), provide ample space to make coding more legible and faster, but the fixed width narrow gutenberg blocks do not permit taking advantage of it. (On a related note: the same holds true for the custom css panel...)

Thanks!

carolinan commented 1 year ago

I am not able to reproduce this. The HTML block has a drag handle in the bottom right corner. The code editor mode is expandable by adding a new line. Tested on macOS with Safari, Firefox, Chrome.