Quellcode durchsuchen

通知公告图标隐藏

长阳分支中职
yxq vor 1 Monat
Ursprung
Commit
bdcf8af783
2 geänderte Dateien mit 8 neuen und 0 gelöschten Zeilen
  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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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);
}


Laden…
Abbrechen
Speichern