How to implement tinymce rich text editor in website with PHP?

Discussion in 'PHP' started by Reflections, Oct 11, 2011.

  1. #1
    Hii Friends

    can any one say

    How to implement tinymce rich text editor in website with PHP?

    i need all your precious help if any one find the answer could you be interested to suggest me

    thanks
     
    Reflections, Oct 11, 2011 IP
  2. HuggyEssex

    HuggyEssex Member

    Messages:
    297
    Likes Received:
    4
    Best Answers:
    2
    Trophy Points:
    45
    #2
    You have to call the script in your header, implementing with PHP I guess you mean you want users to be able to post formatted text and images. I strongly recommend you create a BB Code system as allowing HTML to be placed on your site will cause an untold amount of security issues.

    Just look at the examples in the package you download from TinyMCE, it displays how to do all this.
     
    HuggyEssex, Oct 11, 2011 IP
  3. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #3
    Editing is done in the browser, PHP runs on the server. You can't use PHP to edit in the browser. You can use PHP to check the submitted text, but the editor should be running in Javascript (which runs in the browser).

    You could write an AJAX editor, but the amount of data transfer would be ridiculous, and for no reason.
     
    Rukbat, Oct 14, 2011 IP