1.Newtonsoft.Json.dll的版本使用的不正確,Config.cs文件里導致JObject.Parse(json);解析報錯,也可能其他地方報錯
/// <summary>
/// Config 的摘要说明
/// </summary>
public static class Config
{
private static bool noCache = true;
private static JObject BuildItems()
{
try
{
var json = File.ReadAllText(HttpContext.Current.Server.MapPath("config.json"));
return JObject.Parse(json);
}
catch (System.Exception ex)
{
throw ex;
}
}`
2.ueditor.config.js配置信息里,初始化獲取焦點設置為True
,focus:false //初始化时,是否让编辑器获得焦点true或false