HTML リッチ テキスト エディターで特定の要素を読み取り専用にし、ユーザーが変更できないようにする方法を探しています。この動作を実現する方法はありますか?
私が言及しているリッチ テキスト エディターの例は、次のコード スニペットです。
<html>
<head>
<script type="text/javascript">
var Editor = {
Init: function() {
$("#editor").get()[0].contentWindow.document.designMode = "on";
}
}
$(document).ready(function() { Editor.Init(); });
</script>
</head>
<body>
<iframe id="editor" style="width: 500px; height: 250px;"></iframe>
</body>
</html>
/トバイアス