Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
クロスブラウザのリッチテキストエディタを作成する場合。どちらを使用しますか、またその理由は何ですか?
貼り付けは、複数のソース(メモ帳、単語、その他のWebサイト)に対抗するために回復力が必要であり、Javascriptライブラリに依存してはならないことに注意してください。
おそらくcontentEditableが必要です。designModeはドキュメントに適用され、contentEditableは特定の要素とその子に適用されます。
http://blog.whatwg.org/the-road-to-html-5-contenteditable