• 0

WYSIWYG text editor help


Question

Hello. I need to build a WYSIWYG editor for a site. I must submit the data from the iframe, but I don't know how. I've tried to get the data with the value attribute, but there isn't anything in it. Can you tell me how to get the data from it? The editor will be similar to the neowin editor and it must submit the data to the server in the same way as the neowin editor.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

No, I want to make it myself. I've read a tutorial for making such an editor http://www.devguru.com/features/tutorials/wysiwyg/wysiwyg2.html. It says just the basic idea, but this iframe confuses me. I can make a WYSIWYG editor in this way, but I have no idea how to post the information to the server. Can anyone tell me how to do that and should it be done in this way with an iframe?

Link to comment
Share on other sites

  • 0

1) That link's dead

2) Don't reinvent the wheel

3) For posting data, you're gonna need a server-side parser such as PHP

4) An iframe is definitely not the way to go

5) Can you post up the code you currently have?

6) Seriously, TinyMCE is the s**t

Link to comment
Share on other sites

  • 0

Hm the link is not death. There's just an unnecessary point at the end of the link. Here is a working link http://www.devguru.com/features/tutorials/wysiwyg/wysiwyg2.html . And of course I post my code to a .php page. And I haven't written any code about this WYSIWYG editor, because I have insufficient information. And as I said before, my goal is to code it myself, not to use an already coded WYSIWYG editor from the internet.

Link to comment
Share on other sites

  • 0

Hm the link is not death. There's just an unnecessary point at the end of the link. Here is a working link http://www.devguru.c...g/wysiwyg2.html . And of course I post my code to a .php page. And I haven't written any code about this WYSIWYG editor, because I have insufficient information. And as I said before, my goal is to code it myself, not to use an already coded WYSIWYG editor from the internet.

You might want to read up on browser compatibility with regard to the execCommand() method here http://www.quirksmode.org/dom/execCommand.html before jumping in with that tutorial.

2) Don't reinvent the wheel

That's good advice, there's a plethora of stable, mature, cross-browser compatible wysiwyg editors out there already. If your intent is simply to learn, why not take a look at some of the open source versions, and perhaps contribute to one of those, or even just fork one and bend it to your will?

Link to comment
Share on other sites

  • 0

my goal is to code it myself, not to use an already coded WYSIWYG editor from the internet.

Unless you're being given a school task - a fools errand!

Link to comment
Share on other sites

This topic is now closed to further replies.