1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How do I make a WYSIWYG?

Discussion in 'JavaScript' started by Franky2.0, Jan 9, 2008.

  1. #1
    Hi, I'm trying to find a tutorial or a book that teaches me how to make a WYSIWYG editor. I know most of you will tell me to just use one of the existing WYSIWYGs, but thats not what I want. I want to make my own, and for a reason - none of the WYSIWYGs out there are what I want.

    So does anybody know of a good tutorial (or book) on how to make a cross-browser WYSIWYG?...and if not, does anybody know what I need to know to figure out how to make one?

    I've been trying to figure this out for the past year almost with no success. And all I want to know is how to make a javascript-based WYSIWYG that is cross-browser compatible and that I can play around with the look a bit - I have an idea for a new kind of WYSIWYG that, if it works, would be very cool and very useful...so I at least want to try and make it. Any Suggestions on what I should do (and what I should learn)?
     
    Franky2.0, Jan 9, 2008 IP
  2. babyboy808

    babyboy808 Well-Known Member

    Messages:
    491
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    125
    #2
    Don't know of any books and unless you are a javascript guru I honestly don't think you will be able to make one
     
    babyboy808, Jan 9, 2008 IP
  3. Erthy

    Erthy Peon

    Messages:
    254
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I haven't seen any tutorials like on this topic, but you could getting an open-source wysiwig and look at the code for that :eek:
     
    Erthy, Jan 9, 2008 IP
  4. maiahost

    maiahost Guest

    Messages:
    664
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Download wyzz (available from the most basic version to the most advanced one), look at the javascript code and it should give you some ideas.
     
    maiahost, Jan 9, 2008 IP
  5. Franky2.0

    Franky2.0 Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thank you all for your replies...I think I'm going to learn more about javascript and then go with the "read the source" idea. Thanks again.
     
    Franky2.0, Jan 9, 2008 IP
  6. kendo1979

    kendo1979 Peon

    Messages:
    208
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    i think any programming language can be used to make this. not necessarily java.
     
    kendo1979, Jan 9, 2008 IP
  7. babyboy808

    babyboy808 Well-Known Member

    Messages:
    491
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    125
    #7
    So your saying PHP can achieve the same effect as javascript??
     
    babyboy808, Jan 9, 2008 IP
  8. Anicho

    Anicho Member

    Messages:
    54
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    45
    #8
    openWebWare - Open Source

    JavaScript can be just as good as PHP (a bit, no much), if you know how to play with it:\
     
    Anicho, Jan 9, 2008 IP
  9. MMJ

    MMJ Guest

    Messages:
    460
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #9
    You can't make a web-based WYSIWYG editor with PHP. :rolleyes:

    @OP: Good luck, you got a long way. You might want to check out the source for TinyMCE.
     
    MMJ, Jan 10, 2008 IP
  10. WeBuster

    WeBuster Member

    Messages:
    27
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    38
    #10
    It's not difficult to make a WYSIWYG editor.

    I think you should start with learning about execCommand method, JS.
    It is simpler than you think.
     
    WeBuster, Jan 10, 2008 IP
  11. MMJ

    MMJ Guest

    Messages:
    460
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Making a good one isn't.
     
    MMJ, Jan 10, 2008 IP
  12. WeBuster

    WeBuster Member

    Messages:
    27
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    38
    #12
    You are right,
    But it's all css tricks - that makes the big difference.
     
    WeBuster, Jan 11, 2008 IP
  13. MMJ

    MMJ Guest

    Messages:
    460
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #13
    lol, what are you talking about?
     
    MMJ, Jan 11, 2008 IP
  14. Repentless

    Repentless Peon

    Messages:
    63
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #14
    You need javascript for the frontend and actual editing and such, but it would be nice to have a php backend to save the file you're editing to your server etc.

    Google search: WYSIWYG JavaScript

    And look at the sources. That should give you a good idea.

    Learn JavaScript first. It's very useful.
     
    Repentless, Jan 11, 2008 IP
  15. rohan_shenoy

    rohan_shenoy Active Member

    Messages:
    441
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #15
    TinyMCE
    Link: tinymce.moxiecode.com/
     
    rohan_shenoy, Jan 13, 2008 IP
  16. webexpert

    webexpert Banned

    Messages:
    188
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #16
    several great WYSIWYG editors are available.. some are free and some great are for sell..

    some great opensource free editors are;

    fckeditor
    tinymce
    and just google... you will found many..

    you can try planetsourcecode.com a big collection of useful scripts for free..

    cutesoft.net are offering a great wysiwyg editor.. but its not free..

    after getting a paying or free editor, if its not exactly as per your needs, and if you are good in programming, you can customize them as per your needs..

    but creating from scratch will not be a good idea and you will not be productive enough.. will take your so much time and efforts...

    so - the best way is to take some ready made and then customize it as per your needs..

     
    webexpert, Jan 14, 2008 IP
  17. neasneap

    neasneap Peon

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    but creating something from zero to top is really nice, i know. but mostly i find a script for free because i am not really not good at programming.
     
    neasneap, Jan 15, 2008 IP
  18. jithosh.js

    jithosh.js Peon

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #18
    Is it hard to integrate it in existing scripts
     
    jithosh.js, Jan 18, 2008 IP
  19. webexpert

    webexpert Banned

    Messages:
    188
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #19
    not that hard.. all these editors comes with example files with help how to integrate.. but it depends how familiar you are with your existing script flow..
     
    webexpert, Jan 19, 2008 IP