ueditor1_4_3-utf8-net使用筆記

1.下載下來

下載適合本身編碼的下載包,好比個人網頁編碼是utf-8,加入用的是gbk編碼在ueditor的工具欄裏就會亂碼。html

2.將net裏面的Newonsoft.Json.dll加載至bin裏。

3.將dialogs>image>image.html的面的編碼「<meta charset="UTF-8">」改爲「<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>」不然image.html亂碼,會致使上傳圖片界面不顯示。

 此版本只支持.net 4.0編輯器

 

--------------------------------------------------------------------------工具

1.對於同一個ID控件屢次解析成編輯器,應在下一次解析以前先註銷原來的編輯器。ui

myDialog = $.dialog({
title: 「demo」,
content: $("#baiduEditor").html(),
lock: true,
opacity: 0.1,
close: function () {
//關閉
ueditor.destroy(); //銷燬ueditor
}
});
ueditor = UE.getEditor('txtContent', {
"initialFrameHeight": "350", "autoHeightEnabled": false, "enterTag": "&nbsp;"
}); //回車的時候用換行不用段落標籤

 

2.在這個版本里初始化的時候回默認講div標籤轉爲p,若是不想這樣,能夠去ueditor.all.js裏找到allowDivTransToP設置爲false便可。編碼

相關文章
相關標籤/搜索