[英]bootstrap-wysiwyg Set Content
How to set content to bootstrap-wysiwyg editor dynamically with jQuery. 如何使用jQuery动态地将内容设置为bootstrap-wysiwyg编辑器。 I tried 我试过了
$('.editor').html() and $('.editor').val()
Seems to like none of them are accepting 似乎没有人接受
After struggling lot I found the way 经过艰苦的努力,我找到了方法
var editorObj = $("#description").data('wysihtml5');
var editor = editorObj.editor;
editor.setValue(data.description);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.