Forums

help in understanding the built in tiny MCE editor (1 post)

  1. sudeer
    Member
    Posted 1 year ago #

    Hello,

    I am building a page to send email of the post similar to post notification or subscribe2. These plugins will send the emails automatically once the post has been published.But the one i am building is like a simple HTML email like i will enter the FROM, TO, and select the post subject from a combo box and the content will be automatically fetched and showed in the tiny mce editor. then we can do some modifications if needed and send the email.

    i am facing 2 issues with the editor in my page.

    1, Initially, the post content in DB does not have any <p> tags around each paragraph. But the editor in the POSTS page adds <p> tag for each paragraph and shows the content.but when i used the same function as below, the <p> tags are not adding up to the content.
    [backticks]
    the_editor($content, $id = 'content', $prev_id = 'title', $media_buttons = false, $tab_index = 2)"
    [/backticks]
    Please let me know how can i get this fixed.

    2, When i add those <p> tags from the html mode and when i switch to the Visual mode, the <p> are gone.but this is not the case in default editor. can you please help fix this too.

    i am using this below function to get the eidtor.

    [Code moderated as per the Forum Rules. Please use the pastebin]

Topic Closed

This topic has been closed to new replies.

About this Topic