WYSIWYG browser editor that generates *good* HTML?

前端 未结 11 2133
星月不相逢
星月不相逢 2021-02-02 09:28

I\'m searching for a \"suck less\" WYSIWYG in-browser X?HTML editor that generates good HTML code.

(no ,

相关标签:
11条回答
  • 2021-02-02 09:59

    The Apple Cocoa NSTextView class exports quite nice html, where all the fiddling is done through specifying a style sheet in the header. The Apple TextEdit editor uses this.

    0 讨论(0)
  • 2021-02-02 10:00

    I just recently searched for an editor to create solid documentation, whose output is suitable for Subversion diffs: https://superuser.com/questions/126621/wysiwyg-editor-for-structured-text-suitable-for-svn-versioning

    The editor that was suggested - "KompoZer" - turned out to be fantastic, especially because it generates very clean HTML (in my opinion). And I say that, although I had originally preferred something leaner than HTML.

    P.S. Reading your question again, I'm not sure, what you mean with a "browser editor" - are you looking for an editor that can be integrated in an HTML page? KompoZer is based on a browser, but it can probably not be integrated in an HTML page.

    0 讨论(0)
  • 2021-02-02 10:07

    http://tinymce.moxiecode.com/ - easy to use, can import form Word, and restrict formatting to predefined CSS styles, to provide consistent output.

    0 讨论(0)
  • 2021-02-02 10:11

    There are several WYSIWG editors for embedding within your website out there.

    WYMeditor (http://www.wymeditor.org/) looks very nice and seems to be a good fit for targetting clean and valid XHTML results.

    0 讨论(0)
  • 2021-02-02 10:17

    What about WYMEditor?

    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.

    With WYMeditor, the code can't be contaminated by visual informations like font styles and weights, borders, colors, ... The end-user defines content meaning, which will determine its aspect by the use of style sheets. The result is easy and quick maintenance of information.

    I've used it a little and while it takes quite a bit of tweaking if you have very specific needs, it does work out of the box for simple XHTML editing. If you set up specially annotated CSS files then it will detect the styles you want users to use and block level elements to which they apply. You can also tell it how to display these styles in the editor (which might be different from how you want them displayed in the resulting XHTML).

    Of course, it generates XHTML, not HTML, so it may not meet your exact needs.

    0 讨论(0)
  • 2021-02-02 10:17

    I recently switched one of my projects to markdown to avoid this exact issue. There's still a bit of a learning curve for the users but I haven't had to deal with the usual issues that occur when they copy/paste content from Word and wonder why it blew up.

    Having said that, I prefer CKEditor over TinyMCE and the Telerik controls. I've generally found it generates somewhat cleaner HTML.

    0 讨论(0)
提交回复
热议问题