gpt4 book ai didi

jquery - bootstrap-wysiwyg 设置内容

转载 作者:行者123 更新时间:2023-12-01 01:13:33 26 4
gpt4 key购买 nike

如何使用 jQuery 动态设置 bootstrap-wysiwyg 编辑器的内容。我试过了

$('.editor').html() and $('.editor').val() 

似乎没有人接受

最佳答案

经过一番努力,我找到了方法

var editorObj = $("#description").data('wysihtml5');
var editor = editorObj.editor;
editor.setValue(data.description);

关于jquery - bootstrap-wysiwyg 设置内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41416187/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com