Mike
Mike

Reputation: 5509

TinyMCE or HTML5's contentEditable attribute?

I have always hated wysiwyg editors but most of the applications I develop they are necessary for our clients to edit their content. After trying out a few different ones I seemed to like tinyMCE the best. Although powerful and seems to generate fairly good HTML it is not without its issues. Recently I have been thinking about creating a custom wysiwyg that suits my needs perfectly taking advantage of the contentEditable attribute. Is this HTML5 feature ready? Will I have many cross browser issues? What are its limitations? I guess my question finally boils down to; Will it be worth throwing in the towel on 3rd party wysiwygs and moving to contentEditable regions?

Upvotes: 3

Views: 3332

Answers (2)

eduard
eduard

Reputation: 1495

I say it depends on your scope. If you need something elaborate, massive, and the amount of loaded javascript does not bother you, the use some WYSIWYG. They give lots of possibilities, but also some problems (like this security issue: http://www.devilscafe.in/2011/10/tinymce-ajaxfilemanager-remote-file.html).

But if you need something simple, use html5 contenteditable combined wit execCommand, like this: http://www.quackit.com/html/codes/contenteditable.cfm.

Upvotes: 2

Mike Ratcliffe
Mike Ratcliffe

Reputation: 56

The third party wysiwyg editors will also use the contenteditable attribute. The biggest problems is that they really do create tag soup and the same text created in different user agents will have different HTML source.

Personally I would say that you should stick with tinyMCE of CKEdit.

Upvotes: 4

Related Questions