• Resolved eugene212

    (@eugene212)


    Hello,

    Optimize More is an awesome plugin, but I have observed an unexpected behaviour when using new lines in forms placeholder text (e.g. Forminator Textarea field), i.e. they are shown properly when logged into WP, but it becomes a continuous text (no new lines) when loading the page without logging in.

    If either Remove CSS or Remove JS are just enabled in Optimize More (no any further settings):

    Then Forminator’s Textarea loses new lines, but ordinary text keeps its new lines:

    Same can be observed with other than Forminator forms, so it seems to be some issue with Optimize More and forms’ placeholder text, please advise !

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter eugene212

    (@eugene212)

    The latest 2.0.0 version does not resolve the issue…

    Note: the issue is not there if visiting the page while logged in as an admin.

    Plugin Author Arya Dhiratara

    (@aryadhiratara)

    Hi @eugene212),

    Sorry, I just had the opportunity to test the issue you are experiencing.

    Turns out, the issue came from the parser library that I use for this plugin. When I test the plugin without running the library, the line breaks preserved. So there’s nothing I can do about it, since I can’t (and should not) modify the library.

    But I found a simple workaround for your issue, simply add

    
    

    to add newlines in the placeholders.

    example:

    Line 1.
    
    Line 2.
    
    Line 3.

    Tested here:

    Hope this helps ??

    Really sorry for the late reply ??

    Plugin Author Arya Dhiratara

    (@aryadhiratara)

    Ah, sorry, I think the comment editor converted the line feed character automatically. Please see it in this attached images if you can’t see the unicode in my previous reply:

    Thread Starter eugene212

    (@eugene212)

    Hi @aryadhiratara,

    Your suggested simple workaround works for me, thank you !

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Unexpected removal of new lines in forms placeholder text’ is closed to new replies.