首页 > angular使用umeditor中,需要将数据绑定到编辑器中,显示html的问题

angular使用umeditor中,需要将数据绑定到编辑器中,显示html的问题

angular使用umeditor中,需要将数据绑定到编辑器中,使用ng-model则会显示html标签,使用ng-bind则会正常显示,但是我使用的是modal模态框,第一次ng-bind正常显示,当退出模态框后,再次点进去就会跟ne-model显示的一样,内容带有html标签,每次刷新页面,ng-bind都只会正常显示一次。网上也查询了,使用过$sce.trustAsHtml(),也是只能显示一次,跟ng-bind一样。这并不是我想要的,请教大神帮我解决,部分代码如下:

<div class="form-group">
        <label>内容</label>
        <script type="text/plain" id="myEditor" ng-bind="item.contents"  style="width:1000px;height:240px;"></script>
</div>

第一次显示

第二次显示

【热门文章】
【热门文章】