输入banner图图片脚本导航/分类

javascript-ueditor怎么回显整个html

因为需要把ueditor编辑的整个html保存到数据库,app需要展示。
但这样ueditor的方式就无法回显。

 UE.getEditor('editor').execCommand('insertHtml', value);
 

通过以上方式会提示错误

ueditor.all.min.js:11 Uncaught TypeError: Cannot read property 'getRange' of undefined

回复内容:

因为需要把ueditor编辑的整个html保存到数据库,app需要展示。
但这样ueditor的方式就无法回显。

 UE.getEditor('editor').execCommand('insertHtml', value);
 

通过以上方式会提示错误

ueditor.all.min.js:11 Uncaught TypeError: Cannot read property 'getRange' of undefined