User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » best AJAX WYSIWYG editor (jQuery preferred)? Page [1]  
quagmire02
All American
44225 Posts
user info
edit post

i want to implement some VERY basic WYSIWYG functionality to one of my sites, but i've had very little experience with them

the 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>
but what it puts out is this:
<h2>this is a heading</h2>this is paragraph 1<br>this is paragraph 2<br>
i mean, it's not even using correct tag termination on the breaks

it looks like WYMeditor (http://www.wymeditor.org/) will allow me to customize, but i don't know about its output or implementation (i'll play around with it, obviously, but i was curious as to whether or not anyone here had experience with it)

suggestions?

[Edited on November 23, 2009 at 4:06 PM. Reason : actually, WYMeditor seems to work pretty well and you CAN customize it]

11/23/2009 3:46:20 PM

DPK
All American
2390 Posts
user info
edit post

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

BigMan157
no u
103354 Posts
user info
edit post

tinymce?

11/23/2009 6:03:07 PM

Noen
All American
31346 Posts
user info
edit post

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

kiljadn
All American
44690 Posts
user info
edit post

^ 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

quagmire02
All American
44225 Posts
user info
edit post

actually, WYMeditor is perfect...i got frustrated with jwysiwyg and hadn't explored WYMeditor in its entirety, but from its website:

Quote :
"WYMeditor has been created to generate perfectly structured XHTML strict code, to conform to the W3C XHTML specifications and to facilitate further processing by modern applications."

and sure enough, it does...at least with the functions i've enabled so far...it's actually crazy-simple to implement and customize, uses the jquery library, and is compliant, so it does everything i want

check out some of the demos if you get bored

http://files.wymeditor.org/wymeditor/trunk/src/examples/

11/23/2009 8:41:25 PM

Noen
All American
31346 Posts
user info
edit post

^suh-weet!

11/23/2009 8:47:26 PM

 Message Boards » Tech Talk » best AJAX WYSIWYG editor (jQuery preferred)? Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.