• Hi Scribu

    I wonder if you could help me please with an issue I’m having with your superb plugin.

    When I edit and then save a post that has paragraph and line break formatting in it, the paragraph spacing/link breaks are being removed when I hit save.

    Do you know how I could prevent that happening please?

    Many thanks
    Richard

Viewing 12 replies - 1 through 12 (of 12 total)
  • Site url?

    This is caused by the fact that WordPress inserts <p> &
    tags automatically.

    What version of WP and of the plugin are you using?

    Please post some sample content that is being altered. Is it in a post or in a text widget?

    Thread Starter nzde

    (@nzde)

    Hi Scribu – I’m using WP 2.8.6 and the latest version of the plugin. It’s post content that’s being altered.

    Here’s an example of some code which has line breaks/space between paras when posted, but loses those line breaks/spaces when I save with the Front End Editor:

    <h4>Welcome to Monday Morning Site</h4>
    
    <ol>
    <li><b>Agreement to terms</b>
    <p>Welcome to Monday Morning Site (the 'Site'), a website hosted and operated by Monday Limited ('we', 'our', 'us', 'ML'). These terms apply to the entire contents of the Site as well as to any web feeds produced by or displayed on the Site and to email notifications produced by or via the Site. By viewing and using the Site, you will be deemed to agree to these terms.</p>
    </li>
    <h4>Intellectual property rights</h4>
    <li><b>Copyright</b>

    Any help gratefully received.

    Many thanks.
    Richard

    Your problem comes from the fact that having a <p> tag inside a < li> is not valid HTML.

    If you switch from HTML mode to Visual mode on the post editing screen, you will notice the same behaviour.

    Oh, in FEE 1.6, if you don’t use the rich editor, your (invalid) HTML should be ok. 🙂

    You can try out the development version (1.6a2) now.

    Thread Starter nzde

    (@nzde)

    Thanks Scribu. Much appreciated. Will try out the dev version shortly.

    By the way, and I hope you don’t mind me asking, but is it OK to use break tags, i.e., </br>, inside list tags rather than paragraph tags?

    Thanks again
    Richard

    Thread Starter nzde

    (@nzde)

    Hi Scribu – I’ve tried the dev version on WordPress.org but now I’m afraid the highlighted and seemingly editable post areas are not editable, i.e., when I double click on the area the edit screen does not come up. Any help much appreciated.

    Thread Starter nzde

    (@nzde)

    Hi again Scribu. Further to my two posts above, I see from my trusty HTML bible that <br /> can be used within other elements such as list items. That being so, if I replace all my para tags with the appropriate number of <br /> tags, and use your latest dev version of FEE, all should be working perfectly. That being so, I’d be really grateful if you could consider what seems to be a bug with the dev version please. In the meantime, I’ve gone back to the latest stable release, which is still stripping out the <br /> tags when saving.

    Cheers
    Richard

    A comma was missing in the JS. 🙂

    Dev version 1.6a3 should be working. Refresh your browser cache after updating.

    Thread Starter nzde

    (@nzde)

    Hi Scribu

    I’m wondering whether you’d be interested in developing the FEE for me please, for a fee of course.

    If possible, I’m after two things please:

    (1) I’d love to have the ability to select, from the admin backend, for which categories the FEE will work (in other words, I want it to be available for some categories, but not others).

    (2) I’d also love it if the visual editor could be configured, perhaps by an option in the backend, not to strip out paragraph and break tags, even if (dare I say it) they appear nested within list tags. I know I might be suggesting heresy on this one, but my use would really benefit from this, because the posts I’d like to be editable contain complex autonumbering, with a series of nested ordered lists, where the only solution I can find to make it all work visually is to use <p> and <br /> tags within list items.

    If you’d prefer to touch base directly with me about this, my email address is rnzde@hotmail.com

    Many thanks Scribu
    Richard

    (1) shouldn’t be too hard to implement

    (2) I’m curious how you currently achieve this with the regular WordPress editor.

    Thread Starter nzde

    (@nzde)

    Great, thanks Scribu.

    As to (2), I don’t achieve it with the regular WordPress editor. This is for a set-up that uses Gravity Forms to create posts from the front-end. The answers to the form questions then determine what will be sent to the post body and that is determined by a filter in the functions.php file. So, the complex numbering etc is brought into the post directly from the functions.php file using the Gravity Forms hooks.

    Do you think a tweek to the FEE visual editor could accommodate what I’m after in my question (2) above?

    The beauty of using Gravity Forms in conjunction with your Front End Editor is that it can allow full posting (GF) and editing of posts (FEE) from the front end, the advantages of which are probably obvious. The only sticking point I’m facing is the FEE visual editor stripping out the para and break tags. I appreciate that the WordPress editor does the same but hope we can come up with a workaround for the FEE visual editor.

    Thanks again.
    Richard

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Front end editor – saving is stripping out paragraph/line breaks’ is closed to new replies.