前端 <asp:TextBox ID="ConstructionFeatures" runat="server" ClientIDMode="Static" TextMode="MultiLine" style="width:98%;height:500px;"> </asp:TextBox>
<a onclick="javascript:onSave('Template_0102','Save');getContent('ConstructionFeatures');" class="btnt">保存</a>
<script type="text/javascript">
var ue = UE.getEditor('ConstructionFeatures'}); </script>
后端要怎么写?
刚开始我想着先获取前端UEditor编辑器的值,然后将值赋值给UEditor中的id,然后点击保存后台是靠UEditor的id获取数据,然后存入数据库,可是折腾了半天还事存不进去,大神们有没有好的方法,教教我?
function getContent(id) {
var arr = [];
arr.push(UE.getEditor(id).getContent());
var s = document.getElementById('ConstructionFeatures').innerHTML;
console.log(s);
s = arr[0];
alert(s);
}