Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TinyMCE or HTML5's contentEditable attribute?

Tags:

html

wysiwyg

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?

like image 389
Mike Avatar asked Dec 03 '25 19:12

Mike


1 Answers

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.

like image 158
Mike Ratcliffe Avatar answered Dec 06 '25 10:12

Mike Ratcliffe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!