• Resolved Ivan Tyurin

    (@ivan-tyurin)


    Hello. When you add a description for the new word, the form does not preserve the text passages on a new line (new paragraph). How can I fix this?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jeroen Peters

    (@jeroenpeters1986)

    Hi Ivan,

    You can use HTML in the description. If you want to use breaks/newslines, you can insert <br>.

    I hope this will help 🙂

    Kind regards, Jeroen

    Thread Starter Ivan Tyurin

    (@ivan-tyurin)

    Yes, I already use it. However, I would like to plug-in to automatically save new paragraphs. What should change in the plug-in code to achieve this?

    Plugin Author Jeroen Peters

    (@jeroenpeters1986)

    Hi Ivan,

    A ‘nl2br()’ should be enough in the part were you save the description. I can’t change it now because people are used to HTML, combining that with nl2br would not be great 😉

    Kind regards,

    Jeroen

    Thread Starter Ivan Tyurin

    (@ivan-tyurin)

    Just could not figure out how to apply nl2br (). Can you tell me where in the code and that need to change?

    Plugin Author Jeroen Peters

    (@jeroenpeters1986)

    Hi Ivan,

    in admin.php:589

    I hope this works for you. Keep in mind, you have to apply this again on every update, because WordPress overwrites (actually removes and extract) all the current installed files.

    If you like the plugin, please consider writing me a review 🙂

    Kind regards,

    Jeroen Peters

    Thread Starter Ivan Tyurin

    (@ivan-tyurin)

    Thank you, everything turned out. As an idea, it can not use for the field descriptions wp_editor () to be able to edit and visually?

    Plugin Author Jeroen Peters

    (@jeroenpeters1986)

    Hi Ivan,

    glad it worked out! I am not using wp_editor because there are too many possibilities with that one for now.

    If you like the plugin, please consider writing me a review 🙂

    Kind regards,

    Jeroen Peters

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘It does not save a newline’ is closed to new replies.