• I’m trying to spacing objects in a page using new lines, but the editor strip them.
    I’ve tried directly in html to add
    or <p></p> but these are all removed when you do a Visual->HTML->Visual.

    Is there a mode to don’t let the editor to remove empty paragraph or new lines?

Viewing 15 replies - 1 through 15 (of 25 total)
  • Try <p>&nbsp;</p> instead (just a suggestion, i don’t have such issues myself).

    Thread Starter ShMk

    (@shmk)

    No, <p>&nbsp;</p> it’s stripped too.

    Any other solution?

    Because the editor has to be used by people who thinks that HTML is a new type of mobile phone, if is there a non-HTML method will be better…

    Shift + Enter?

    Thread Starter ShMk

    (@shmk)

    It enters a
    instead of a paragraph but when I click publish or change the visualization they’re removed πŸ™

    Beats me, i don’t have these problems myself.

    Maybe an option would be to disable the HTML tab? (Could be extended to apply to particular roles)
    http://wpengineer.com/disable-html-editor-wordpress/

    Thread Starter ShMk

    (@shmk)

    You dont’ have these problems because you don’t have to space paragraphs and objects inside a page or because your editor doesn’t remove br and empty paragraphs?

    I may not use content in the same way, i use the editor mainly for text based articles with the odd image here and there, but i don’t have any spacing issues, and i do switch between HTML and Visual several times during writing.

    I use WordPress.com for my blog, which also runs WP 3.x code (same code as i run locally), where i also do not have these problems.

    You probably have a much wider use for the editor overall than i do, so it doesn’t surpise me you have some problems with the editor (it’s not perfect – no such thing).

    If you’d like to give me some sample content to plonk into a post that i can use to replicate the issue described i’ll happily go test it for you, and if i can replicate the problem i’ll see if i can find a work-around (no promises, but i can give it a shot).

    Thread Starter ShMk

    (@shmk)

    I’m not doing anything “special” πŸ˜€

    Here’s the easier example ever:

    Text<br />
    <br />
    <br />
    <br />
    Text

    WordPress editor removes/strip/ignore the various BRs under the first one.

    It’s not a “perfect/correct/fair” method for spacing, but for the final users (that usually has only a basic knowledge of word processing software) this is the only method he could use to space objects in a page/post.

    So these users have problems just using the regular Return/Enter new line? (ie. if they use that and switch between Visual->HTML then lose these new lines).

    If these users are working in Visual Mode, they’d not see any HTML such as that above, or was that code a sample for me to play with? You said example (i’m just not sure what it’s an example of – is it what you currently use for spacing?).

    Thread Starter ShMk

    (@shmk)

    That example is if you want to use the HTML,
    by the way the users mainly uses the Visual mode.

    If you want to test it in Visual mode you could simply try to write down some text, insert various ENTER and/or SHIFT+ENTER, write down some other text and then publish/update the page.

    All the “surplus” newlines will be removed by the wordpress editor.

    Will give this a try when back at the other PC.

    In the mean time, does you theme have the necessary margins applied for spacing paragraphs, that’s typically how it’s done, with any actual line breaks being additional to the paragraph spacing.

    If you can provide a link to a page with content where you have this issue i can check if the theme is spacing out the paragraphs (only take a moment).

    Thread Starter ShMk

    (@shmk)

    Anyone has found a solution for avoiding wordpress to automatically strip “surplus” new lines?

    you can “help” yourself perhaps with the right css-settings.

    just set (you can do this in html-editor)

    <p class="blubb">text1</p>
    <p class="bla">text2</p>

    and in your css-file

    .blubb {margin-bottom: 2em;}
    Thread Starter ShMk

    (@shmk)

    I need to found a solution that doesn’t use HTML, because this “new lines spacing” is used by final users that know just the basic commands of a easy software like Words.

    Thread Starter ShMk

    (@shmk)

    The only partial solution I’ve found, that it’s easy to understand for a customer, is to use a HR to do vertical spacing.

    I’ve added the HR button to wordpress tinymce and I’ve made the HR invisible on the frontend, but as you can see is not a very good solution…

    Anyone has found a better way to let non-html users spacing the content in a page?

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘Insert empty lines in edtior’ is closed to new replies.