我正在尝试 summernote 的 contenteditable 属性html 编辑器插入使页面加载时为 false,但不影响。
这是我的 JS 代码:
<script>
$(function(){
$('div#son_durum').children('.note-editor')
.children('.note-editing-area')
.children('.note-editable')
.attr('contenteditable',false);
});
</script>
我可以做什么来实现这个目标?
谢谢
最佳答案
为什么尝试将 contenteditable
设置为 false
?只需保留它,并且在页面加载时不要在 div#son_durum
上启动 Summernote。
或者,您想切换 Summernote 的启用/禁用状态吗?已经报告了类似的问题。请参阅https://github.com/summernote/summernote/issues/1109
关于javascript - SummerNote ContentEditable 属性 Make False,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32629764/