小编Dmi*_*t3F的帖子

Summernote设置默认字体大小和字体

我正在使用最新版本的summernote库。如何设置默认字体大小和字体?我正在尝试这样,但无法正常工作:

 $('.text-editor').summernote({
        toolbar: [
            ['style', ['style']],
            ['font', ['bold', 'italic', 'underline', 'superscript', 'subscript', 'strikethrough', 'clear']],
            ['fontname', ['fontname']],
            ['fontsize', ['fontsize']],
            ['color', ['color']],
            ['para', ['ul', 'ol', 'paragraph']],
            ['height', ['height']],
            ['table', ['table']],
            ['insert', ['link', 'picture', 'video', 'hr']],
            ['view', ['codeview']]
        ],
        fontsize: '16'
    });
Run Code Online (Sandbox Code Playgroud)

https://jsfiddle.net/dtgr5q29/142/

javascript summernote

3
推荐指数
1
解决办法
8316
查看次数

.Net核心中Json()的小写属性名称

具有类ClientViewModel:

public class Result
{      
  public long PKID
  {
      get;
      set;
  }

   public string Name
   { 
      get; 
      set; 
   }
}
Run Code Online (Sandbox Code Playgroud)

并具有post方法来返回此模型:

[HttpPost]
    public JsonResult Search(string orderBy, List<Order> order, Search search,
        int start, int length, string searchTerm, bool isAsc, bool hideVoidedAndDeclined, bool recent = false)
    {
        var take = length;
        var skip = start;
        var m = _clientsService.Search(searchTerm, orderBy, hideVoidedAndDeclined, isAsc, take, skip, recent);


        return Json(m);
    }
Run Code Online (Sandbox Code Playgroud)

但是当尝试在json中返回对象时,它看起来像:

name:"Nick22"
pkid: 5
Run Code Online (Sandbox Code Playgroud)

但是我需要保存注册

Name:"Nick22"
PKID: 5
Run Code Online (Sandbox Code Playgroud)

.net c# json asp.net-core

1
推荐指数
1
解决办法
1413
查看次数

如何禁用身份 .net 核心的自动哈希密码

我找不到禁用身份 .net 核心的自动哈希密码的方法。因为此代码会自动散列密码:

var result = await _userManager.CreateAsync(user, model.Password);
Run Code Online (Sandbox Code Playgroud)

.net c# asp.net asp.net-core

0
推荐指数
2
解决办法
2887
查看次数

标签 统计

.net ×2

asp.net-core ×2

c# ×2

asp.net ×1

javascript ×1

json ×1

summernote ×1