ueditor富文本编辑器的使用

    xiaoxiao2021-03-26  19

    <script type="text/javascript" src="${ctx}/res/js/ueditor/ueditor.config.js"></script> <script type="text/javascript" src="${ctx}/res/js/ueditor/ueditor.all.js"></script>

    ue = UE.getEditor('content',{ initialFrameWidth :735,//设置编辑器宽度 initialFrameHeight:250,//设置编辑器高度 scaleEnabled:true }); 获取编辑器的内容:

    ue.getContent(); 设置编辑器的内容

    ue.setContent(data.contentStr); 编辑器初始化完成之后:

    ue.ready(function(){ });

    转载请注明原文地址: https://ju.6miu.com/read-659775.html

    最新回复(0)