我通过这段代码创建了SCEditor
var textBBcode = null;
$(function () {
textBBcode = $("textarea").sceditor({
plugins: "bbcode",
style: "js/api/sceditor/jquery.sceditor.default.min.css",
emoticonsRoot: "js/api/sceditor/"
});
});
并通过此代码获取值(BBCode)并转换为 html
var val = textBBcode.sceditor('instance').val();
var result = textBBcode.sceditor('instance').fromBBCode(val, true);
结果几乎没问题,除了表情符号。它不转换。
如何解决?