TinyMCE or HTML5 contentEditable attribute?

I always hated wysiwyg editors, but most of the applications that I develop are necessary for our customers to edit their content. Having tried several different ones, it seemed to me that I liked tinyMCE. Despite the powerful and seems to be generating pretty good HTML, it is not without problems. Recently, I was thinking of creating a custom wysiwyg that fully satisfies my needs using the contentEditable attribute. Is this HTML5 feature ready? Will I have a lot of cross browser issues? What are its limitations? I think my question finally comes down to the following; Should I throw a towel at third-party wysiwygs and go into contentEditable regions?

+3
source share
2 answers

Third-party wysiwyg editors will also use the contenteditable attribute. The biggest problems are that they actually create tagged soup, and the same text created in different user agents will have a different HTML source.

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

+4
source

I say that it depends on your scale. If you need something complex, massive, and the amount of javascript loaded does not bother you, use WYSIWYG. They provide many features, but also some problems (for example, this security issue: http://www.devilscafe.in/2011/10/tinymce-ajaxfilemanager-remote-file.html ).

- , html5 contenteditable wit execCommand, : http://www.quackit.com/html/codes/contenteditable.cfm.

+2

Source: https://habr.com/ru/post/1749032/


All Articles