1
我使用“froala”编辑器改变嵌入式文本,这里是link“froala”编辑器删除HTML标签属性
除了它每一件事情是工作的罚款去除DIV/P/SPAN等属性。 这里是我的功能
$('div#eg-custom-toolbar').editable({
inlineMode: false,
buttons: ['undo', 'redo' , 'sep', 'bold', 'italic', 'underline']
})
});
前:
<div contenteditable="true" ng-style="{'color' : styleArr[6]['scopval']}" ng-bind-html="banner_text3" ng-model="banner_text3" ng-mouseleave="hoverOut('banner_text3')" ng-mouseover="hoverIn('banner_text3')" class="banner_text3 ng-pristine ng-untouched ng-valid ng-binding" style="color: rgb(255, 255, 255);">HE #1 CONVERSION EVENT FOR BUSINESS GROWTH</div>
后:
<div contenteditable="true" class="banner_text3 ng-pristine ng-untouched ng-valid ng-binding" style="color: rgb(255, 255, 255);">HE #1 CONVERSION EVENT FOR BUSINESS GROWTH</div>
有什么建议?