Do Not delete blank lines "Classic Block" editor set to "edit html"

  • Unknown's avatar

    When I have the editor set to “edit html” and NOT visual. DO NOT delete blank lines. Who does that?

    I am not using markdown. I am using markup. (you know, the standard that has run the web since about the Mosaic was developed.

    Actually I’ve used markup longer than that, because for there was hypertext markup language there was general markup language.

    I know you think you are making things better. You are not.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    I would put this in support, but I’ve worked with developers for too many decades to believe you will see a design flaw as bug, and not a feature.

  • I can’t duplicate this. Could you give the exact steps you’re using and share the markup you’ve used? You can mark it as code here using backticks.

  • Unknown's avatar

    Post edited in the “Classic Editor” in text more

    Same post edited in “New and Improved” editor under “edit code mode”

    Tags are stripped

    blank lines stripped.

    I. Do. NOT. Want. Your. Help. I have been using markup languages longer than some of you have been alive.

    I do not like What You See Is Probably Not What You Get Editors.

    The “New and Improved” editor reminds me a lot of WordPad, versus Word. But we will get to that in the next post.

  • Hi there,

    To clarify, when you say “markup” you mean you are authoring your content entirely in HTML?

    Or do you mean to say you create most of the post initially in the visual editor, and then switch to the HTML view to tweak and make changes to the code once it is added by the visual editor?

    If you are writing your content entirely in HTML I would recommend using the “Custom HTML Block” instead, and then adding your markup entirely within that block: https://wordpress.com/support/wordpress-editor/blocks/custom-html-block/

  • Unknown's avatar

    When I click on “Add New Post” (and have the link specify Classic Editor) it brings up the Text version, NOT the visual version.

    While I use things like LibreOffice in its WYSIWYG format (you can display markup in some of the systems) all I am trying to emulate in that case is a typeset letter.

    The WYSIWYG editor – both classic and “New and Improved” I don’t like what they hide.

    For example. In the New Block Editor, without editing the HTML it is impossible (or at least I haven’t found an easy way in the testing I’ve done) to have a list inside a paragraph. Putting all lists after a </p> tag screws up the spacing. Maybe there is some override I haven’t seen, but if I use a List Block then it closes the paragraph above, which depending on the CSS that will be applied screws up the page.

    Is it easy? Maybe. But it doesn’t look right. And after 4 or 5 generations of HTML and Cascading Style Sheets IT SHOULD LOOK EXACTLY the way I Want it to. Not the way that makes sense to someone else.

    SO to answer your question. YES. Hypertext Markup Language. Which was an evolution of Generalized Markup Language.

  • Unknown's avatar

    Other things you can’t do with either the old or the new visual editor.

    The start= tag for lists. <ol start="5"><li>this item will be numbered 5</li><li>this will be 6</li></ol>

    And yes, I do use that probably 3 times a month when I am excerpting from other peoples’ lists

    An ordered list that uses anything except Arabic numerals. You can’t use the HTML tags – at least I can’t since I don’t have access to the CSS on this system, but you can you style tags to produce upper case alpha, lower case alpha. I haven’t tested but I assume you can also use Greek letters, Roman numerals (upper and lower case) etc.

    Since I can type nearly as fast as I can talk, none of this is a problem for me. I actually work faster than if I stop to grab the mouse and click thru a bunch of menus to add an unordered list block. That said, the old classic editor, when in text mode, does give me some useful tools. Highlight a paragraph and make it a blockquote, or italic. Highlight a word or phrase and make it bold.

  • Unknown's avatar

    I will look at the “customized HTML” block, but I don’t hold out much hope.

    In the section where you “customize your theme” the “custom HTML widgets” for say adding things to the side bar are trying to be so “helpful” that they get in the way. They want to help you delete an entire link, instead just the one parameter from the style tag.

  • For example. In the New Block Editor, without editing the HTML it is impossible (or at least I haven’t found an easy way in the testing I’ve done) to have a list inside a paragraph.

    List blocks cannot be nested inside paragraph blocks, no. And based on some searching I did it doesn’t appear that that is supposed to be possible:

    https://stackoverflow.com/questions/7168723/unordered-list-in-a-paragraph-element

    Putting all lists after a </p> tag screws up the spacing.

    The better method to control spacing is to use CSS. You can add a custom class to individual paragraph blocks in the editor, under the Advanced tab in the block settings, and then target that class to reduce the bottom margin for specific paragraphs using custom CSS:

    https://d.pr/i/tImxwk

    If you don’t have a premium plan, you should also be able to use inline CSS, via the style attribute, to add this to individual paragraph blocks by editing the blocks themselves as HTML.

    Other things you can’t do with either the old or the new visual editor.

    The start= tag for lists.

    You can change the start value for an ordered list using the block settings for the list block:

    https://d.pr/i/pidwmR

    An ordered list that uses anything except Arabic numerals

    This is not currently possible, no. But the WordPress.org team is working on adding support for the type attribute, so hopefully we’ll see that in a future version of the editor.

  • The topic ‘Do Not delete blank lines "Classic Block" editor set to "edit html"’ is closed to new replies.