瀏覽代碼

通知公告图标隐藏

长阳分支中职
yxq 1 月之前
父節點
當前提交
bdcf8af783
共有 2 個檔案被更改,包括 8 行新增0 行删除
  1. +7
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Content/ueditor/ueditor.view.js
  2. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/UtilityController.cs

+ 7
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Content/ueditor/ueditor.view.js 查看文件

@@ -0,0 +1,7 @@
let imgs = document.querySelectorAll('img')
imgs.forEach(e => {
let src = e.getAttribute('src')
if (src.includes('Content/ueditor/dialogs/attachment/fileTypeImages/icon_')){
e.style.display = 'none'
}
})

+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/UtilityController.cs 查看文件

@@ -607,6 +607,7 @@ namespace Learun.Application.Web.Controllers
public ActionResult ListContentView(string keyValue)
{
var data = noticeIBLL.GetEntity(keyValue);
data.F_NewsContent = data.F_NewsContent + "<script src='/Content/ueditor/ueditor.view.js'></script>";
data.F_NewsContent = WebHelper.HtmlDecode(data.F_NewsContent);
return Content(data.F_NewsContent);
}


Loading…
取消
儲存