February 20th, 2013, 04:00 AM
WYSIWYG - contenteditable clean the output
I've just been adding a really simple WYSIWYG editor and I've come across a problem with consistent output between browsers.
When I view the source there seems to be weird markup in there and some use different elements. For example when pressing return. Some browsers add <br> tags, others wrap in p and some in divs.
February 20th, 2013, 04:39 AM
is there any reason why you need to make your own editor? I mean, there are literally hundreds of them out there in every flavor. And as far as I can tell, they've solved this problem already.
February 20th, 2013, 04:49 AM
Yeah I was thinking I was going to get this response. To be honest I just don't want to included other things because they tend to have bloat. Things I would never use that I would need to spend time to strip them out.
Originally Posted by Jacques1
February 28th, 2013, 11:56 AM
What basic functionality do you actually need? Most editors allow you to modify their toolbar pretty easily. If you're thinking about building your own editor, take a look at the blog post below about contenteditable and why you probably don't want to take this approach. The basic premise is that building your own editor is easy, but building one that works well is really, really, really hard.
(Sorry, I can't post URLs yet)