Forums

the_editor - display saved content not correct (2 posts)

  1. kim.kaho
    Member
    Posted 1 year ago #

    I've used builtin editor of wordpress (the_editor - function) in a plugin to save rich text into the wordpress database.

    Everything works ok except displaying the paragraphs and line breaks of the saved text back in the plugin admin pages or more importantly on the front-end.
    The p-tags (which are automatically added to general posts) not show up when I display my saved text.

    I use following code to write out text:
    <?php echo stripslashes($item->question); ?>

    li, b, u, ... tags are correctly shown only newline and paragraphs are ignored.

    Suggestions?

  2. kim.kaho
    Member
    Posted 1 year ago #

    I've found a solution by adding the tiny-mce advanced plugin
    http://stackoverflow.com/questions/2505418/p-tag-is-not-displayed-in-html-editor-for-wordpress

Topic Closed

This topic has been closed to new replies.

About this Topic