Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a cross-browser jQuery contentEditable library? [closed]

I'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.

like image 866
Daniel Avatar asked Jun 06 '11 23:06

Daniel


3 Answers

Aloha is a feature-complete and polished editor component using contentEditable. It uses jQuery UI.

like image 83
2 revs, 2 users 50% Avatar answered Nov 12 '22 16:11

2 revs, 2 users 50%


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.

like image 3
Daniel Avatar answered Nov 12 '22 15:11

Daniel


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.

like image 2
Lime Avatar answered Nov 12 '22 15:11

Lime