i want to implement some VERY basic WYSIWYG functionality to one of my sites, but i've had very little experience with themthe goal here is to severely limit how much the user can do...they only need: - formatting: H2/H3, strong, em, lists - links - insert images - horizontal rules (optional)no forms, no tables, no inline styling (it would be great if i could provide specific classes they could apply, like some left/right floats)i tried jwysiwyg (http://code.google.com/p/jwysiwyg/), but it doesn't generate correct or standards-compliant code...for example, the top block is what it SHOULD output:
<h2>this is a heading</h2><p>this is paragraph 1</p><p>this is paragraph 2</p>
<h2>this is a heading</h2>this is paragraph 1<br>this is paragraph 2<br>
11/23/2009 3:46:20 PM
Messed around with CKEditor at all? It's extremely customizable.http://ckeditor.com/demo[Edited on November 23, 2009 at 4:43 PM. Reason : -]
11/23/2009 4:38:52 PM
tinymce?
11/23/2009 6:03:07 PM
good luck. this is why WYSIWYG editors play such limited roles in content publishing.I've yet to see one that produces standards compliant code. But most get close and if you really limit the functionality, you can probably tweak them to get xhtml compliant code spitting out.
11/23/2009 8:08:48 PM
^ yeah, that's what I was thinking. just download an unpacked version of jwysiwyg and tune it to your needs, then repack. easy enough, and you'll decrease filesize, too.[Edited on November 23, 2009 at 8:26 PM. Reason : .]
11/23/2009 8:25:32 PM
actually, WYMeditor is perfect...i got frustrated with jwysiwyg and hadn't explored WYMeditor in its entirety, but from its website:
11/23/2009 8:41:25 PM
^suh-weet!
11/23/2009 8:47:26 PM