この属性について知ったばかりで、そのcontenteditable
実用的な使い方を考えていました。
ページの更新が速いのは素晴らしいと思いますが、次のような懸念事項があります。
- セキュリティ: 誰にもページを更新されたくないのは明らかなので、コンテンツの編集を許可することはかなり厳密に制御する必要があります
- ログイン後にページのコンテンツを編集可能にします。これには、ページ全体のマークアップを変更する必要があるのではないでしょうか? それ自体は問題ではありませんが、私が想像するかなり大きな仕事です
- 新しいコンテンツを保存しています。理論的には、これは ajax と json を使用して、データベースのフィールドに新しいページ マークアップを保存することで実行できます。また、「これで変更が完了しました。これで保存できます」ということを実際にどのようにウェブサイトに確認しますか。
ページのコンテンツを表示する場所ですばやく編集するというこのアイデアが気に入っています。私は自分のウェブサイトにそのようなものを実装することに非常に興奮していますが、それを試みる前に少しのガイダンスを使用できます.
上記の問題と、関連性があるとは思わなかった問題に誰かが対処できますか?
御時間ありがとうございます!