Is there a cross-browser jQuery contentEditable library? [closed]
开发者_开发问答
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this questionI'm looking for a jQuery plugin / library that makes the contentEditable attribute work properly in all major browsers (I could even go without IE6). I don't need a full WYSIWYG editor solution because I want to build my own – however I'm focusing on user experience so I'd prefer a "plug and play" solution.
I only need to access the editor features through code (API-like), I'm building the user interface myself.
Aloha is a feature-complete and polished editor component using contentEditable. It uses jQuery UI.
I ended up using WYSIHAT (http://37signals.com/svn/posts/1330-introducing-wysihat-an-eventually-better-open-source-wysiwyg-editor, https://github.com/37signals/wysihat).
It's Prototype-based (yeah, I know, not jQuery), but it's exactly the kind of "library" I needed. I can build my own toolbars and even own commands with ease.
jQuery can be integrated in .noConflict
-mode.
Tinymce allows you to build the interface yourself and is jquery compatible.
http://tinymce.moxiecode.com/tryit/jquery_plugin.php
If you desire to build everything yourself(like from scratch), there will probably be a lot of cross browser debugging needed. Some browsers like IE support exexCommand others don't and you now the typical javascript bugs that come with developing a library.
I would just delete what you don't need of off tinymce, if you want efficiency and speedy.
精彩评论