Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Visual Editor Removing Leading Whitespace

Discussion in 'Misc WordPress Requests' started by demolishun, Nov 6, 2017.

  1. demolishun

    Guest

    Reply To: Visual Editor Removing Leading Whitespace, by demolishun

    I was not using the Visual editor to preview. I was using the text editor to enter my text to prevent the visual editor from removing whitespace when I pasted the code. Now, however, WordPress removes whitespace from the beginning of lines upon opening a post in the visual editor. This has made my workflow different.

    I found a workable solution now. By using the “pre” with a css class I can enclose my code. Then to remove the outer box that would appear around the Code Colorer box I set the css to this:


    .cchack{
    border:none;
    margin: 0 0 0;
    }


    This has solved my issue and workflow problem. Thanks!

    Reply To: Visual Editor Removing Leading Whitespace
     
    #1

Share This Page

Web Hosting