Support » Fixing WordPress » Block Editor

  • Hi There:

    Been using WP for ten years; only recently started using the Block Editor. I’ve run into two things that I’m not sure are challenges with the Block Editor or my own ignorance of working with it.

    1) Images. In the classic editor, when I added an image to a post I was offered a choice of links for that image. Usually I would link to the content itself, and the advantage of that was that if someone clicks on the image it pops up a larger version that they can see. I tend to upload images at 2000px but display them at 900px for those who have lower resolution screens. In some cases I link the image to an external URL. In the Block Editor I couldn’t find a way to set or alter a link to an image, and after completing the post I have to go to the classic editor, edit the images and set the links.

    2) Justification. It’s not just the block editor, but a few years ago they changed the options for paragraphs to left, right and centre justification. I’ve always gone in and edited the code to set <p style=”text-align: justify;”> at the beginning of each paragraph as I prefer the full justification to the ragged edge of left justification.

    While I was editing the image links in my latest post, I also added the paragraph code to each paragraph. When I switched back to the block editor, I found it had added a <p> in front, effectively making it <p><p style=”text-align: justify;”> I went through again and removed the <p> from each paragraph.

    3) The effect of both of those changes was that WP now said there was improper code in each block. I had the choice of Resolve or Convert to HTML. By clicking the three dot menu I could also go through and convert each block to a classic block, which I understand gives me the old classic editor in a specified block.

    So, the questions are: Is there a better way for me to do this without having to compose in the block editor, edit in the classic editor, edit in the block editor and then convert each block to a classic block? And second, what happens when the classic editor is rescinded?

    [ Signature moderated ]

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • 1) There are different ways to add images to a post in the block editor. If you use an image block, the toolbar over the image (once it is in the post) has a link icon. There you can select to link to the media or enter a URL or search.
    An image added to a paragraph is considered an inline image. It doesn’t have any special toolbar, but you can set the width. If you click on the image it is selected, and then you can click on the link icon to make the image a link.
    You can edit the HTML of the paragraph block (or whatever other block you put it in) and change the HTML.
    Other blocks with images: cover block, gallery block.

    2) The justify text option was removed from the classic editor long ago, and so the block editor does not have it either. You can use it this way: in Customizer > Additional CSS or in your theme’s style sheet, add a class like .myjustify {text-align: justify} and then you can put that class on the blocks that you want to be justified (when you select a block, the right sidebar shows its properties, add class under Advanced). Or you can just style all paragraphs as justified: p {text-align: justify}.

    thanks i got the solution for me as well …..

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Block Editor’ is closed to new replies.