Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Was really thrilled at first, this could be exactly the kind of wysiwyg-editor I've been looking for. Unfortunately it seems the markup returned by .cleanHtml() is completely useless (see http://pastebin.com/uwpSMKsi). If I could get proper markup (paragraphs, headlines, not a thousand divs) and maybe the possibility to edit the markup myself this would be the perfect editor.


You can make it create paragraphs and headings by adding a button for the formatBlock command to your toolbar. Google for execCommand, all those things are supported out of the box.


To be fair, that's contenteditable's behavior, not this plugin's.


Oh. I didn't know that. That's bad news :( Guess I have to keep dreaming about a wysiwyg that actually works.


We have an editor, SnapEditor, (http://www.snapeditor.com/) and it will keep your HTML clean. You will get the output you expected.

You can even cut and paste from Microsoft Word or Google Docs and it will fix your HTML to the way you'd expect.

Sunny


Now that seems to be along the lines of what I'm looking for. The only problem I can see is that I'm working on an open source project, and your licenses doesn't seem to be compatible with that.


What's the unminified size of the editor files and how many files are you down to for a completed page load? Thx!


I'm not currently doing development on the software myself so I don't know the file size for sure at this moment; however, I believe it's similar to Redactor which is known for its small size (not sure if it's more or less now because we've just cut more size off of our deliverable).

As for number of files, I believe it is 1 Javascript file. The required HTML and CSS is compiled into the JS now to reduce number of files to transfer. I don't know how many images it is right now but if it is more than 1, then we will likely eventually compile it down to 1.

Sunny


Thanks for the info! I have been looking at redactor for nwzPaper, but I will take a look at snap editor now. Currently using jwysiwyg and the format stripping is garbage. It's super light and the license doesn't cause us any problems, so I have stayed with it until I can commit to a better LT solution.

Daniel




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: