SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2005
    Posts
    61
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to build a WYSIWYG inline editor

    I want to build my own WYSIWYG inline editor. Not the iframe type, but the textarea type.

    Does anybody know how to do this, or where to I should start?

    Please submit all relevant thoughts, information, and URL's.
    Last edited by kg1; Mar 15, 2006 at 22:56.

  2. #2
    SitePoint Enthusiast pentapenguin's Avatar
    Join Date
    Aug 2005
    Location
    GA, USA
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    TinyMCE uses a textarea instead of an iframe.

  3. #3
    SitePoint Enthusiast
    Join Date
    Dec 2005
    Posts
    61
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Arrow TinyMCE

    Correct, TinyMCE does use a text area instead of an iframe.

    I would like to create my own from ground up.

    Thanks for your reply
    Last edited by kg1; Mar 16, 2006 at 12:05.

  4. #4
    SitePoint Enthusiast pentapenguin's Avatar
    Join Date
    Aug 2005
    Location
    GA, USA
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry, without looking at their code I don't know for sure how to use a textbox in any browser. In IE, you can set any element to WYSIWYG state by setting the contentEditable=true attribute but in Mozilla you are limited to iframes only I believe.

  5. #5
    SitePoint Enthusiast pentapenguin's Avatar
    Join Date
    Aug 2005
    Location
    GA, USA
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Update: I looked at the generated source of TinyMCE and it dynamically replaces the <textarea> with an iframe. If the wizards there can't do it with a regular ole <textarea> then I doubt it's possible.

  6. #6
    SitePoint Enthusiast
    Join Date
    Dec 2005
    Posts
    61
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks pentapenguin

  7. #7
    SitePoint Enthusiast pentapenguin's Avatar
    Join Date
    Aug 2005
    Location
    GA, USA
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No problem...this idea has intrigued me so if I ever find a workaround I'll try to remember to post here with an update.


Bookmarks

Posting Permissions

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