Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: using tinyMCE

  1. #1
    Regular Coder croatiankid's Avatar
    Join Date
    Jan 2006
    Posts
    665
    Thanks
    1
    Thanked 12 Times in 12 Posts

    using tinyMCE

    I want to use tinyMCE for a small site I'm making, and I just don't get it. I've searched their forums and wiki. What I want is: I have index.php, a normal html page. Let's say it's two column (with IDs left and right, respectively). Then I want to have admin.php, which will contain 2 text areas with TinyMCE, one for each column. So one of them will get the text (html) from left, other will get from right, and a submit button which will change (edit) index.php. How do I do this with TinyMCE? Also I want admin.php to be able to edit multiple files, not just index.php, using a switch (for example, for content1.php (html page), index.php?page=content1 will load the left and right column html from content1.php etc. I can edit the switch easily). Security isn't an issue, because admin.php in the end won't be called admin.php.

  • #2
    Senior Coder koyama's Avatar
    Join Date
    Dec 2006
    Location
    Copenhagen, Denmark
    Posts
    1,246
    Thanks
    1
    Thanked 5 Times in 5 Posts
    The primary purpose of using TinyMCE is for adding WYSIWYG-functionality to a <textarea>.

    It sounds like you want more from TinyMCE than it can offer? You still need to set up a <form> holding the TinyMCE-<textarea>s. And you also need to process (using e.g. php) what is received. Usually this means updating the database.

    What kind of setup do you have. Is your site database-driven?

  • #3
    Senior Coder
    Join Date
    Sep 2005
    Posts
    1,791
    Thanks
    5
    Thanked 36 Times in 35 Posts
    As said, before you can use TinyMCE, you need to (ideally) have your form+database+rendering working with jsut a plain textarea.
    How much of that do you have? It will make things easier to explain if you give us an idea of how much you've done already...
    My thoughts on some things: http://codemeetsmusic.com
    And my scrapbook of cool things: http://gjones.tumblr.com

  • #4
    Regular Coder croatiankid's Avatar
    Join Date
    Jan 2006
    Posts
    665
    Thanks
    1
    Thanked 12 Times in 12 Posts
    OHHH I get it. Haven't done nothing yet, need help with a concept, without tinyMCE. Plz leave this topic alone for now.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •